Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disposing of streams from within their callback?



Is it safe to do that from within a callback to the read stream (kCFStreamEventHasBytesAvailable, kCFStreamEventErrorOccurred or kCFStreamEventEndEncountered)?

It's definitely safe on 10.2; I haven't tested on 10.1, but I believe it's safe there, too. If it's not, I'd expect it to crash immediately, so it should be easy to tell.... :)

REW
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Disposing of streams from within their callback? (From: Avi Drissman <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.