Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Pfaff <tpfaff@gmx.net>2003-04-17 23:57:01 +0400
committerThomas Pfaff <tpfaff@gmx.net>2003-04-17 23:57:01 +0400
commita4cea44072f03808fae271d1a4075225ae166d86 (patch)
tree4fb029dbbd4bc30b66b0fa897c1a99edda8966e6 /winsup/cygwin/thread.h
parent62b01426550b50a6b63a225aced0d33251a26243 (diff)
* 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.h5
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;