Re: How to kill a thread?
Re: How to kill a thread?
- Subject: Re: How to kill a thread?
- From: Chris Kane <email@hidden>
- Date: Tue, 21 Jan 2003 11:29:37 -0800
On Sunday, January 19, 2003, at 1:50PM, Mark Levin wrote:
And pthreads can be used safely in Obj-C apps.
...aside from the warning in the documentation that the cocoa
libraries will not become thread-safe unless you use NSThreads?
The previous poster's statement about pthreads and ObjC is literally
true -- pthreads can be used safely within ObjC programs. You
shouldn't attempt to use ObjC (or Cocoa functions) within such threads,
without further precautions, but if you just want a thread to execute
some C code, you don't need to take ObjC and Cocoa multithreaded. The
threads that Foundation itself creates to do some types of operations
asynchronously are generally carefully written in C only so that
Foundation doesn't in fact make the app ObjC-threadsafe (with the
slight performance penalty that incurs).
Chris Kane
Cocoa Frameworks, Apple
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.