• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ThreadSafe issue with CFSocket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ThreadSafe issue with CFSocket


  • Subject: Re: ThreadSafe issue with CFSocket
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 19 Dec 2003 15:58:26 -0800

On Dec 19, 2003, at 6:39 AM, Pranav Kumar Sahu wrote:

Same has done for Read and Send. It works fine with no thread. When i put
this code in multi thread environment CFSocketInvalidate(s); crashes with
send callback.

Am i doing some thing wrong ? or CFSocket objects are not thread safe ?

You're not being terribly specific here. Yes, CFSockets are thread-safe. However, "same has done for read and send" covers a lot of ground, as does "crashes with send callback". Some code and a bt of all threads after the crash would help.

Douglas Davidson
_______________________________________________
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: 
 >ThreadSafe issue with CFSocket (From: Pranav Kumar Sahu <email@hidden>)

  • Prev by Date: ThreadSafe issue with CFSocket
  • Next by Date: Raw Sockets using CF
  • Previous by thread: ThreadSafe issue with CFSocket
  • Next by thread: Raw Sockets using CF
  • Index(es):
    • Date
    • Thread