From a4cea44072f03808fae271d1a4075225ae166d86 Mon Sep 17 00:00:00 2001 From: Thomas Pfaff Date: Thu, 17 Apr 2003 19:57:01 +0000 Subject: * 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. --- winsup/cygwin/thread.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'winsup/cygwin/thread.h') 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; -- cgit v1.2.3