Re: Bluetooth and runloops in a dedicated thread.
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