Salome HOME
projects
/
modules
/
yacs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR: first version from Antony GEAY, with directory restructuration
[modules/yacs.git]
/
src
/
bases
/
ThreadPT.hxx
1
#ifndef __THREADPT_HXX__
2
#define __THREADPT_HXX__
3
4
#include <pthread.h>
5
6
namespace YACS
7
{
8
namespace BASES
9
{
10
class ThreadPT
11
{
12
public:
13
typedef void *(*ThreadJob)(void*);
14
public:
15
ThreadPT(ThreadJob funcPtr, void *stack);
16
bool operator==(const ThreadPT& other);
17
void join();
18
static void sleep(unsigned long usec);
19
private:
20
pthread_t _threadId;
21
};
22
}
23
}
24
25
#endif