From 2eaa1422a032d6a7ffc72a2abeb3dd3e6248a263 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 23 Feb 2012 10:37:09 +0100 Subject: Adapted AsyncEventNotifier to safer-to-use salhelper::Thread --- extensions/Library_pcr.mk | 1 + extensions/prj/build.lst | 2 +- extensions/source/propctrlr/browserlistbox.cxx | 9 +++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'extensions') 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; } -- cgit