diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-02-23 10:37:09 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-02-23 10:47:37 +0100 |
commit | 2eaa1422a032d6a7ffc72a2abeb3dd3e6248a263 (patch) | |
tree | a8a618394c09b21cd189a4f9f221557dc5fc628a /extensions | |
parent | 40d21ab3c75a7c18de940162563015ae80136709 (diff) |
Adapted AsyncEventNotifier to safer-to-use salhelper::Thread
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/Library_pcr.mk | 1 | ||||
-rw-r--r-- | extensions/prj/build.lst | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/browserlistbox.cxx | 9 |
3 files changed, 9 insertions, 3 deletions
diff --git a/extensions/Library_pcr.mk b/extensions/Library_pcr.mk index 857258d7b9d9..2a32152e6809 100644 --- a/extensions/Library_pcr.mk +++ b/extensions/Library_pcr.mk @@ -57,6 +57,7 @@ $(eval $(call gb_Library_add_linked_libs,pcr,\ cppuhelper \ cppu \ sal \ + salhelper \ $(gb_STDLIBS) \ )) diff --git a/extensions/prj/build.lst b/extensions/prj/build.lst index 06f2e2de9a66..90e646afbf81 100644 --- a/extensions/prj/build.lst +++ b/extensions/prj/build.lst @@ -1,4 +1,4 @@ -ex extensions : officecfg TRANSLATIONS:translations DESKTOP:rdbmaker svx SANE:sane TWAIN:twain np_sdk offapi stoc ZLIB:zlib CURL:curl LIBXSLT:libxslt CPPUNIT:cppunit NULL +ex extensions : officecfg salhelper TRANSLATIONS:translations DESKTOP:rdbmaker svx SANE:sane TWAIN:twain np_sdk offapi stoc ZLIB:zlib CURL:curl LIBXSLT:libxslt CPPUNIT:cppunit NULL ex extensions\prj nmake - all ex_prj NULL # Fails at the moment diff --git a/extensions/source/propctrlr/browserlistbox.cxx b/extensions/source/propctrlr/browserlistbox.cxx index 0abddac638db..ec907ab4caff 100644 --- a/extensions/source/propctrlr/browserlistbox.cxx +++ b/extensions/source/propctrlr/browserlistbox.cxx @@ -126,8 +126,13 @@ namespace pcr ::osl::MutexGuard aGuard( getMutex() ); if ( !s_pNotifier.is() ) { - s_pNotifier.set( new ::comphelper::AsyncEventNotifier ); - s_pNotifier->create(); + s_pNotifier.set( + new ::comphelper::AsyncEventNotifier("browserlistbox")); + s_pNotifier->launch(); + //TODO: a protocol is missing how to join with the launched + // thread before exit(3), to ensure the thread is no longer + // relying on any infrastructure while that infrastructure is + // being shut down in atexit handlers } return s_pNotifier; } |