* thread.h (pthread::equal): New static method.

* thread.cc: Rename pthread_equal to pthread::equal throughout.
(pthread_equal): Use pthread::equal to compare threads ids.
This commit is contained in:
Thomas Pfaff
2003-04-17 19:57:01 +00:00
parent 62b0142655
commit a4cea44072
3 changed files with 19 additions and 8 deletions

View File

@@ -438,6 +438,11 @@ public:
virtual unsigned long getsequence_np();
static int equal (pthread_t t1, pthread_t t2)
{
return t1 == t2;
}
private:
DWORD thread_id;
__pthread_cleanup_handler *cleanup_stack;