Update bug_report.md
[ACE_TAO.git] / ACE / performance-tests / Synch-Benchmarks / Perf_Test / adaptive_recursive_lock_test.cpp
bloba0e0f410e244d6349c42614afbf82ab7bd2f66b7
1 #define ACE_BUILD_SVC_DLL
2 #include "ace/Log_Msg.h"
3 #include "Adaptive_Lock_Performance_Test_Base.h"
4 #include "ace/Lock_Adapter_T.h"
5 #include "ace/Recursive_Thread_Mutex.h"
7 #if defined (ACE_HAS_THREADS)
9 class ACE_Svc_Export Adaptive_Recursive_Lock_Test : public Adaptive_Lock_Performance_Test_Base
11 public:
12 virtual int init (int, ACE_TCHAR *[]);
15 int
16 Adaptive_Recursive_Lock_Test::init (int, ACE_TCHAR *[])
18 ACE_Lock *lock;
19 ACE_NEW_RETURN (lock,
20 ACE_Lock_Adapter<ACE_Recursive_Thread_Mutex> (),
21 -1);
23 return this->set_lock (lock);
26 ACE_SVC_FACTORY_DECLARE (Adaptive_Recursive_Lock_Test)
27 ACE_SVC_FACTORY_DEFINE (Adaptive_Recursive_Lock_Test)
29 #endif /* ACE_HAS_THREADS */