Re: Crashes in CFReadStreamRead()
Re: Crashes in CFReadStreamRead()
- Subject: Re: Crashes in CFReadStreamRead()
- From: John Iarocci <email@hidden>
- Date: Thu, 6 Oct 2005 10:11:01 -0700
On Oct 05, 2005, at 7:01 AM, Rich Siegel wrote: Is it possible that running CFNetwork synchronously on multiple threads is a bad idea? Could there be a bug in CFNetwork or CFRunLoop in which a shared data structure is being mangled? Do I have a bug? (Always a possibility.)
Running CFNetwork synchronously on multiple threads is supported as long as you are not using the same CFStream. If you are using the same stream on multiple threads, you will need to lock around your synchronous calls to prevent accessing the same object on multiple threads (similar to a POSIX file stream -- FILE *).
John Iarocci CoreServices Mgr Apple Computer, Inc.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden