diff options
Diffstat (limited to 'ace/Process_Semaphore.h')
-rw-r--r-- | ace/Process_Semaphore.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/ace/Process_Semaphore.h b/ace/Process_Semaphore.h index d9b813b4d4d..295c79d5ce0 100644 --- a/ace/Process_Semaphore.h +++ b/ace/Process_Semaphore.h @@ -18,7 +18,13 @@ #include /**/ "ace/pre.h" -#include "ace/ACE_export.h" +#ifdef ACE_THREADS_BUILD_DLL +# include "ace/ACE_Threads_export.h" +#else +# include "ace/ACE_export.h" +# define ACE_Threads_Export ACE_Export +#endif /* ACE_THREADS_BUILD_DLL */ + #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once @@ -30,15 +36,13 @@ # include "ace/Semaphore.h" #endif /* !(ACE_WIN32 || ACE_HAS_POSIX_SEM || ACE_PSOS) */ -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - /** * @class ACE_Process_Semaphore * * @brief Wrapper for Dijkstra style general semaphores that work * across processes. */ -class ACE_Export ACE_Process_Semaphore +class ACE_Threads_Export ACE_Process_Semaphore { public: /// Initialize the semaphore, with an initial value of @a count and a @@ -53,7 +57,7 @@ public: * If you want to remove the semaphore, you must call the <remove> * method explicitly. */ - // ~ACE_Process_Semaphore (void); + ~ACE_Process_Semaphore (void); /** * Explicitly destroy the semaphore. Note that only one thread @@ -151,15 +155,12 @@ template <class T> class ACE_Malloc_Lock_Adapter_T; * the standard form used by other lock strategy classes. */ template<> -class ACE_Export ACE_Malloc_Lock_Adapter_T<ACE_Process_Semaphore> +class ACE_Threads_Export ACE_Malloc_Lock_Adapter_T<ACE_Process_Semaphore> { public: ACE_Process_Semaphore * operator () (const ACE_TCHAR *name); }; -ACE_END_VERSIONED_NAMESPACE_DECL - - #if defined (__ACE_INLINE__) #include "ace/Process_Semaphore.inl" #endif /* __ACE_INLINE__ */ |