diff options
Diffstat (limited to 'yhttpd-0.7.1/src/thrd/thro.cpp')
| -rw-r--r-- | yhttpd-0.7.1/src/thrd/thro.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/yhttpd-0.7.1/src/thrd/thro.cpp b/yhttpd-0.7.1/src/thrd/thro.cpp new file mode 100644 index 0000000..f6acf53 --- /dev/null +++ b/yhttpd-0.7.1/src/thrd/thro.cpp @@ -0,0 +1,45 @@ +#ifndef THRO_CPP +#define THRO_CPP + +#include "thro.h" + +using namespace std; + +thro::thro() +{ +} + +thro::~thro() +{ +} + +void +thro::run() +{ + void* p_void; + run( p_void ); +} + +void +thro::run( void *p_void ) +{ + elem.p_thro = this; + elem.p_void = p_void; + pthread_create( &pthread, NULL, start_, &elem ); +} + +void* +thro::start_( void *p_void ) +{ + elements *e = (elements*) p_void; + e->p_thro->start( e->p_void ); +} + +void +thro::start( void *p_void ) +{ + wrap::system_message( THRDSTR ); +} + + +#endif |
