blob: 06af9e1b5b3aa5867f70fa489b68e0aff650fae0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* -*- c++ -*- */
#ifndef JAWS_TPOOL_CONCURRENCY_H
#define JAWS_TPOOL_CONCURRENCY_H
#include "jaws3/Concurrency.h"
class JAWS_Export JAWS_TPOOL_Concurrency : public JAWS_Concurrency_Impl
{
public:
JAWS_TPOOL_Concurrency ();
int putq (JAWS_Protocol_Handler *ph);
int getq (JAWS_Protocol_Handler *&ph);
static JAWS_TPOOL_Concurrency * instance ()
{
return ACE_Singleton<JAWS_TPOOL_Concurrency, ACE_SYNCH_MUTEX>::instance ();
}
private:
int number_of_threads_;
int shutdown_task_;
int error_;
};
#endif /* JAWS_TPOOL_CONCURRENCY_H */
|