diff options
author | leak <leak@bitmx.net> | 2014-07-06 01:42:12 +0200 |
---|---|---|
committer | leak <leak@bitmx.net> | 2014-07-06 01:42:35 +0200 |
commit | da3f6e923a0cb72976d7b56ace49023ecf58ceaa (patch) | |
tree | 55c767b5f3afddc339f088f2d45a470968a8bb5d /dep/acelite/ace/Semaphore.cpp | |
parent | 7befb26625dd1eeb237e223296d9ed8817297025 (diff) |
Completely remove ACE as dependency for TC - kkthxbye
Diffstat (limited to 'dep/acelite/ace/Semaphore.cpp')
-rw-r--r-- | dep/acelite/ace/Semaphore.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/dep/acelite/ace/Semaphore.cpp b/dep/acelite/ace/Semaphore.cpp deleted file mode 100644 index 04588668b3a..00000000000 --- a/dep/acelite/ace/Semaphore.cpp +++ /dev/null @@ -1,60 +0,0 @@ -// $Id: Semaphore.cpp 91286 2010-08-05 09:04:31Z johnnyw $ - -#include "ace/Semaphore.h" - -#if !defined (__ACE_INLINE__) -#include "ace/Semaphore.inl" -#endif /* __ACE_INLINE__ */ - -#include "ace/Log_Msg.h" -#include "ace/ACE.h" - -ACE_BEGIN_VERSIONED_NAMESPACE_DECL - -ACE_ALLOC_HOOK_DEFINE(ACE_Semaphore) - -void -ACE_Semaphore::dump (void) const -{ -#if defined (ACE_HAS_DUMP) -// ACE_TRACE ("ACE_Semaphore::dump"); - - ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); - ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("\n"))); - ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); -#endif /* ACE_HAS_DUMP */ -} - -ACE_Semaphore::ACE_Semaphore (unsigned int count, - int type, - const ACE_TCHAR *name, - void *arg, - int max) - : removed_ (false) -{ -// ACE_TRACE ("ACE_Semaphore::ACE_Semaphore"); -#if defined(ACE_LACKS_UNNAMED_SEMAPHORE) -// if the user does not provide a name, we generate a unique name here - ACE_TCHAR iname[ACE_UNIQUE_NAME_LEN]; - if (name == 0) - ACE::unique_name (this, iname, ACE_UNIQUE_NAME_LEN); - if (ACE_OS::sema_init (&this->semaphore_, count, type, - name ? name : iname, - arg, max) != 0) -#else - if (ACE_OS::sema_init (&this->semaphore_, count, type, - name, arg, max) != 0) -#endif - ACE_ERROR ((LM_ERROR, - ACE_TEXT ("%p\n"), - ACE_TEXT ("ACE_Semaphore::ACE_Semaphore"))); -} - -ACE_Semaphore::~ACE_Semaphore (void) -{ -// ACE_TRACE ("ACE_Semaphore::~ACE_Semaphore"); - - this->remove (); -} - -ACE_END_VERSIONED_NAMESPACE_DECL |