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
*[])
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...
17 ACE_DEBUG ((LM_DEBUG
, ACE_TEXT ("Starter has released semaphore\n")));