1 #define ACE_BUILD_SVC_DLL
3 #include "Performance_Test_Options.h"
4 #include "Benchmark_Performance.h"
6 #if defined (ACE_HAS_THREADS)
8 class ACE_Svc_Export Token_Test
: public Benchmark_Performance
14 static ACE_Token token
;
17 ACE_Token
Token_Test::token
;
22 // Extract out the unique thread-specific value to be used as an
24 int ni
= this->thr_id ();
27 while (!this->done ())
30 performance_test_options
.thr_work_count
[ni
]++;
38 ACE_SVC_FACTORY_DECLARE (Token_Test
)
39 ACE_SVC_FACTORY_DEFINE (Token_Test
)
41 // ACE_Service_Object_Type tok (&token_test, "Token_Test");
42 #endif /* ACE_HAS_THREADS */