diff options
author | Thomas Pfaff <tpfaff@gmx.net> | 2003-04-17 19:57:01 +0000 |
---|---|---|
committer | Thomas Pfaff <tpfaff@gmx.net> | 2003-04-17 19:57:01 +0000 |
commit | a4cea44072f03808fae271d1a4075225ae166d86 (patch) | |
tree | 4fb029dbbd4bc30b66b0fa897c1a99edda8966e6 /winsup/cygwin/thread.h | |
parent | 62b01426550b50a6b63a225aced0d33251a26243 (diff) | |
download | cygnal-a4cea44072f03808fae271d1a4075225ae166d86.tar.gz cygnal-a4cea44072f03808fae271d1a4075225ae166d86.tar.bz2 cygnal-a4cea44072f03808fae271d1a4075225ae166d86.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index 121d35af9..e162b32a0 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -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; |