version 1.1.2.4, 2006/07/28 20:46:41
|
version 1.1.2.6, 2006/07/28 21:19:53
|
|
|
| |
static void cleanup_pop(int execute); | static void cleanup_pop(int execute); |
| |
static Uint32 id(const ThreadType& x); |
static Uint32 id(const ThreadType& x = Threads::self()); |
| |
static void clear(ThreadType& x); | static void clear(ThreadType& x); |
}; | }; |
|
|
| |
inline bool Threads::equal(ThreadType x, ThreadType y) | inline bool Threads::equal(ThreadType x, ThreadType y) |
{ | { |
return pthread_equal(x.thread(), y.thread()); |
return pthread_equal(x.handle(), y.handle()); |
} | } |
| |
inline void Threads::exit(ThreadReturnType rc) | inline void Threads::exit(ThreadReturnType rc) |
|
|
| |
inline void Threads::cancel(ThreadType th, ThreadReturnType rc) | inline void Threads::cancel(ThreadType th, ThreadReturnType rc) |
{ | { |
pthread_cancel(th.thread()); |
pthread_cancel(th.handle()); |
} | } |
| |
inline void Threads::yield() | inline void Threads::yield() |