59 if(
thread == NULL )
return false;
61 if( WaitForSingleObject(
thread, INFINITE ) == WAIT_FAILED ) {
63 XPTPD_ERROR(
"Wait for thread exit failed %s", errstr );
HANDLE thread
Definition: Stoppable.hpp:48
Definition: Stoppable.hpp:45
#define XPTPD_ERROR(fmt,...)
Definition: debugout.hpp:41
Stoppable()
Definition: Stoppable.hpp:53
bool stop()
Stops thread.
Definition: Stoppable.hpp:58
virtual ~Stoppable()=0
Definition: Stoppable.hpp:72
bool exit_waiting
Definition: Stoppable.hpp:47