sprint 1-alpha
Public Member Functions
sprint::thread Class Reference

#include <thread.h>

Inherited by sprint::runnable.

List of all members.

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

Detailed Description

a Wrapper per C/C++ Thread a thread object.

 th.run<ServerCom,DWORD,&ServerCom::Thread>(this);

Member Function Documentation

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

Note:
this is a dangerous function and should not be used. Heap and mutex are not released.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines