26#if BIO_CPP_VERSION < 11
27 #ifdef BIO_OS_IS_LINUX
41 #ifdef BIO_OS_IS_LINUX
44 m_id(InvalidThreadId()),
51 m_stopRequested(false)
78 Threaded* threaded = Cast< Threaded* >(arg);
89 bool again = threaded->
Work();
105 #if BIO_CPP_VERSION < 11
109 return m_thread->get_id();
124 #if BIO_CPP_VERSION < 11
126 #ifdef BIO_OS_IS_LINUX
127 int result = pthread_create(&m_thread, NULL,
Worker,
this);
148 #if BIO_CPP_VERSION < 11
150 #ifdef BIO_OS_IS_LINUX
152 int result = pthread_join(m_thread, threadReturn);
173 #if BIO_CPP_VERSION < 11
174 #ifdef BIO_OS_IS_LINUX
178 std::this_thread::sleep_for (std::chrono::microseconds(ms));
#define BIO_SANITIZE(test, success, failure)
void UnlockThread() const
virtual void RequestStop()
virtual ThreadId GetThreadId()
static ThreadId InvalidThreadId()
virtual void Sleep(TimeUS us)
static void * Worker(void *arg)