summaryrefslogtreecommitdiff
path: root/test/threads.h
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2006-01-06 16:53:04 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2006-01-06 16:53:04 +0000
commit741322a01a8d91f2082a2ba6fdb8b867bc227a26 (patch)
treebf009d0b7593f496d14b3cf0cdc80bd5cb581125 /test/threads.h
parente0a8bd61e7b658c71f4b7c0a71136b5d8535d6e4 (diff)
The threads demo would display negative prime numbers
on MacOS X; this appears to be a MacOS X bug, but we added a workaround to "fix" this (STR #1138) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4740 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'test/threads.h')
-rw-r--r--test/threads.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/threads.h b/test/threads.h
index 8d376b147..aa89e7bea 100644
--- a/test/threads.h
+++ b/test/threads.h
@@ -50,9 +50,8 @@
typedef pthread_t Fl_Thread;
-static int fl_create_thread(Fl_Thread& t, void *(*f) (void *), void* p)
-{
- return pthread_create((pthread_t*)&t, 0, f, p);
+static int fl_create_thread(Fl_Thread& t, void *(*f) (void *), void* p) {
+ return pthread_create((pthread_t*)&t, &attr, f, p);
}
# elif defined(WIN32) && !defined(__WATCOMC__) // Use Windows threading...