18 #ifndef MY_THREAD_HPP__
19 #define MY_THREAD_HPP__
25 using std::stringstream;
66 pthread_attr_init(&attr);
67 pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
78 (void)
vout.str(std::string());
93 #endif // MY_THREAD_HPP__
int transaction_count
Definition: my_thread.hpp:45
virtual void operator()()=0
pthread_t my_pthread
Definition: my_thread.hpp:42
friend void * call_runnable(void *f)
Definition: my_thread.cpp:20
#define VERIFY(E)
Definition: macros.hpp:25
thread(runnable *f)
Definition: my_thread.hpp:62
runnable * my_runnable
Definition: my_thread.hpp:43
TRANSACTION_PURE void erase_buffered_output()
Definition: my_thread.hpp:77
Definition: my_thread.hpp:41
bool in_transaction()
Definition: my_thread.hpp:57
d_lock io_lock
Definition: mesh.cpp:33
#define THREAD_SHUTDOWN()
Definition: common.hpp:93
void dump_buffered_output()
Definition: my_thread.hpp:81
thread()
Definition: my_thread.hpp:70
#define TRANSACTION_PURE
Definition: common.hpp:88
Definition: my_thread.hpp:33
void * call_runnable(void *f)
Definition: my_thread.cpp:20
void leave_transaction()
Definition: my_thread.hpp:54
stringstream vout
Definition: my_thread.hpp:47
void enter_transaction()
Definition: my_thread.hpp:51
virtual ~runnable()
Definition: my_thread.hpp:36
~thread()
Definition: my_thread.hpp:87