• 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: Bluetooth and runloops in a dedicated thread.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bluetooth and runloops in a dedicated thread.


  • Subject: Re: Bluetooth and runloops in a dedicated thread.
  • From: Peter Sichel <email@hidden>
  • Date: Wed, 28 Apr 2010 08:49:58 -0400

On Apr 28, 2010, at 12:11 AM, David Giovannini wrote:

> I knocked all the code down to the single UI thread and I rediscovered why I need multiple threads. My Obj-C objects give KVC semantics to the bluetooth device.

Is this absolutely necessary?

> A getter is waiting on a thread signal for the arrival of requested data.

The Cocoa Bluetooth API was designed to be asynchronous after years of experience and problems with using synchronous APIs for networking.  Trying to translate it back into a synchronous multi-threaded API might be counter productive.

If you really need a synchronous API, the previous Bluetooth APIs might still be available.

- Peter

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Bluetooth and runloops in a dedicated thread. (From: David Giovannini <email@hidden>)
 >Re: Bluetooth and runloops in a dedicated thread. (From: Dave Keck <email@hidden>)
 >Re: Bluetooth and runloops in a dedicated thread. (From: David Giovannini <email@hidden>)
 >Re: Bluetooth and runloops in a dedicated thread. (From: Dave Keck <email@hidden>)
 >Re: Bluetooth and runloops in a dedicated thread. (From: David Giovannini <email@hidden>)

  • Prev by Date: Re: Bluetooth and runloops in a dedicated thread.
  • Next by Date: Re: Bluetooth-dev Digest, Vol 7, Issue 13
  • Previous by thread: Re: Bluetooth and runloops in a dedicated thread.
  • Next by thread: Re: Bluetooth-dev Digest, Vol 7, Issue 13
  • Index(es):
    • Date
    • Thread