blob: 1f4e66ae51e8b4d109577cadf5c3d722bef18463 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-ai,v 1.2 2002/07/19 03:48:14 mycroft Exp $
--- gthread/testgthread.c.orig Fri Jul 19 03:43:50 2002
+++ gthread/testgthread.c Fri Jul 19 03:42:15 2002
@@ -87,10 +87,10 @@
pthread_attr_setdetachstate (&pthread_attr, PTHREAD_CREATE_JOINABLE);
*/
pthread_create (&thread, &pthread_attr, (void *(*)(void *)) func, data);
- return GUINT_TO_POINTER (thread);
+ return thread;
}
#define join_thread(thread) \
- pthread_join ((pthread_t)GPOINTER_TO_UINT (thread), NULL)
+ pthread_join ((thread), NULL)
#define self_thread() GUINT_TO_POINTER (pthread_self ())
#else /* we are not having a thread implementation, do nothing */
|