sprint 1-alpha
|
#include <thread.h>
Inherited by sprint::runnable.
Public Member Functions | |
thread () | |
Ctor. | |
bool | create_thread (const sprint::thread_function &p) |
bool | get_exit_code (LPDWORD lpdwExitCode) |
bool | is_terminated () const |
bool | is_running () const |
bool | kill () |
bool | join (unsigned int timeout=INFINITE) |
wait for thread terminataion |
a Wrapper per C/C++ Thread a thread object.
th.run<ServerCom,DWORD,&ServerCom::Thread>(this);
bool sprint::thread::create_thread | ( | const sprint::thread_function & | p | ) |
run per C thread using a sprint::thread::function
m_thread.create_thread(sprint::thread_function( ... ) );
bool sprint::thread::get_exit_code | ( | LPDWORD | lpdwExitCode | ) |
return the status of thread and eventually the exitcode (WIN32 specific function)
bool sprint::thread::is_running | ( | ) | const |
test if thread is running (WIN32 specific function)
bool sprint::thread::is_terminated | ( | ) | const |
Test if thread is terminated (WIN32 specific function)
bool sprint::thread::kill | ( | ) |
force termination of thread