1 #include "test_config.h"
5 #include "ace/Barrier.h"
7 struct X
: private ACE_Copy_Disabled
17 ACE_Barrier
barrier (2);
19 struct Task
: ACE_Task_Base
21 explicit Task (ACE_TSS
<X
> *tss
) : tss_(tss
) {}
27 ACE_DEBUG ((LM_DEBUG
, ACE_TEXT ("%d X objects created\n"), X::count_
));
34 ACE_TSS
<X
> *const tss_
;
37 int run_main (int, ACE_TCHAR
*[])
39 ACE_START_TEST (ACE_TEXT ("TSS_Leak_Test"));
41 ACE_TSS
<X
> *const tss
= new ACE_TSS
<X
>;
53 ACE_ERROR ((LM_ERROR
, ACE_TEXT ("ERROR: %d X objects (should be 0)\n"),