Re: Bluetooth on Snow Leopard
Re: Bluetooth on Snow Leopard
- Subject: Re: Bluetooth on Snow Leopard
- From: David Herrmann <email@hidden>
- Date: Wed, 9 Sep 2009 20:47:13 +0200
I happened to use the IOBluetooth C API in a project some time ago and
I only discovered that all bluetooth functions have to be called from
the same thread, but not explicitely the main thread. I currently have
no access to Snow Leopard but did that also change in the new release?
When I developed the code I noticed that some notifications are sent
to the current thread but especially the "ConnectionClose"
notifications where always sent to the thread that I used to open the
first connection. Since this was never the main thread, I put all the
bluetooth stuff in a separate worker thread and everything worker
fine. Has anyone tested this in the new Mac OS release? Do I have to
change the code?
David Herrmann
_______________________________________________
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