blob: e35520c22c08bb7249ffb3ff47e1adf288177c50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#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
|