There a whole bunch of bug reports on the use of pthreads and the fact
that semaphores are not supported. There is one really good bug report
on pthreads at
http://www.opensource.apple.com/bugs/X/Libraries/2686231.html which kind
of summarizes what is missing from the pthreads.h.
Here is one quote from the report:
"We don't support per-thread signals, so pthread_kill() and
pthread_sigmask() are missing."
Zach
-----Original Message-----
From: email@hidden
[mailto:email@hidden] On Behalf Of Mark Asbach
Sent: Thursday, February 21, 2002 3:38 PM
To: Student Developer's List
Subject: pthread problems
Hi all,
I've got a problem with pthreads in Mac OS X. Currently I'm porting a
library that relies heavily on POSIX, especially on pthread
multithreading.
I'm wondering, why pthread_kill() doesn't exist on Mac OS X. I tried to
use pthread_cancel() or pthread_detach() as a replacement, but no thread
gets killed. When debugging with PB / gdb, I get a call chain that looks
like
0 semaphore_wait_trap
1 pthread_exit
2 _pthread_body
(all greyed out)
for all threads that should already by killed.
Is this a Darwin bug or is it possible for a thread to be "locked" so
that it can't terminate?
Any help appreciated,
Mark
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
studentdev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/studentdev
Do not post admin requests to the list. They will be ignored.