diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-11-26 12:58:31 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-01-09 13:44:24 +0100 |
commit | bcfd016c88f2da271fc77da608b42d2f5bd83448 (patch) | |
tree | cf5a413ccfb8befd4bf5f1c2485230c23ad63d86 /sal | |
parent | sal: remove OSL_ENSURE_FILE, better use SAL_LOG/SAL_INFO (diff) | |
download | core-bcfd016c88f2da271fc77da608b42d2f5bd83448.tar.gz core-bcfd016c88f2da271fc77da608b42d2f5bd83448.zip |
some notes about COM threading in LO generally and winaccessibility
- document general COM threading architecture in vcl README
- document winaccessiblitiy locking in README
- define _ATL_APARTMENT_THREADED for UAccCOM
Change-Id: I7c3fd952f2cdee7d245a818bf33c477e7ea20fc2
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/thread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sal/osl/w32/thread.c b/sal/osl/w32/thread.c index 0bb71722694f..a5cf7155e408 100644 --- a/sal/osl/w32/thread.c +++ b/sal/osl/w32/thread.c @@ -49,9 +49,8 @@ static unsigned __stdcall oslWorkerWrapperFunction(void* pData) { osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)pData; - /* Initialize COM */ - - CoInitializeEx(NULL, COINIT_MULTITHREADED); + /* Initialize COM - Multi Threaded Apartment (MTA) for all threads */ + CoInitializeEx(0, COINIT_MULTITHREADED); /* spawned by oslCreateThread */ /* call worker-function with data */ |