1 #include "ace/Local_Tokens.h"
3 #include "ace/OS_NS_unistd.h"
5 #if defined (ACE_HAS_TOKENS_LIBRARY)
8 class ThreadOne
: public ACE_Task_Base
13 ACE_Local_Mutex
mutex1 (ACE_TEXT ("resource1"),
14 0, // Deadlock detection enabled.
15 1);// Debugging enabled.
18 ACE_Local_Mutex
mutex2 (ACE_TEXT ("resource2"), 0, 1);
24 class ThreadTwo
: public ACE_Task_Base
29 ACE_Local_Mutex
mutex2 (ACE_TEXT ("resource2"),
30 0, // Deadlock detection enabled.
31 1);// Debugging enabled.
34 ACE_Local_Mutex
mutex1 (ACE_TEXT ("resource1"),
35 0, // Deadlock detection enabled.
36 1);// Debugging enabled.
42 int ACE_TMAIN (int, ACE_TCHAR
*[])
57 #else /* defined (ACE_HAS_TOKENS_LIBRARY) */
59 int ACE_TMAIN (int, ACE_TCHAR
*[])
62 ACE_TEXT ("local tokens not supported ")
63 ACE_TEXT ("on this platform\n")));
67 #endif /* defined (ACE_HAS_TOKENS_LIBRARY) */