Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
pthread problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.