Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / examples / Semaphores / starter.cpp
blobc056c0cf2f74d754ac51471cb4fc7f1bfdfff4b4
1 #include "ace/Process_Semaphore.h"
2 #include "ace/OS_NS_unistd.h"
3 #include "ace/Log_Msg.h"
5 int ACE_TMAIN (int , ACE_TCHAR *[])
7 // Create locked
8 ACE_Process_Semaphore s (0, ACE_TEXT("AceTest"));
10 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Starter has created and acquired semaphore\n")));
12 // Do some init stuff. Simulated by a sleep...
13 ACE_OS::sleep(10);
15 s.release();
17 ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("Starter has released semaphore\n")));
19 return 0;