summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorbje <bje>1998-07-10 14:25:21 +0000
committerbje <bje>1998-07-10 14:25:21 +0000
commit0851aa8a26f428eec19b4efa42b7249fdf599d37 (patch)
tree1fa9425a2eed76013d0ff27d5da4d5b36f07dc78 /misc.c
parent05da1080315240dd7809acc9d2e3630876a684a5 (diff)
1998-07-11 Ben Elliston <bje@cygnus.com>
* misc.c (pthread_equal): Implement.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/misc.c b/misc.c
index 1ad1bf9..eb5b5cf 100644
--- a/misc.c
+++ b/misc.c
@@ -7,7 +7,8 @@
#include "pthread.h"
-pthread_t pthread_self(void)
+pthread_t
+pthread_self(void)
{
/* It looks like a pthread_t needs to be a HANDLE, but Win32 also has
another way of identifying threads: their thread id. We hope
@@ -16,3 +17,13 @@ pthread_t pthread_self(void)
return GetCurrentThread();
}
+
+int
+pthread_equal(pthread_t t1, pthread_t t2)
+{
+ /* For the time being, assume that HANDLEs can be directly compared.
+ If not, then use the appropriate Win32 function for
+ comparison. */
+
+ return (t1 != t2);
+}