• 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
Bluetooth on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bluetooth on Snow Leopard


  • Subject: Bluetooth on Snow Leopard
  • From: "Brian M. Criscuolo" <email@hidden>
  • Date: Wed, 9 Sep 2009 13:39:02 -0400

Hi all,

Realizing the list traffic is pretty low, I thought I'd give this one a try anyway.

We have some old(er) code that deals with Bluetooth RFComm connections in a weird and probably a not-altogether correct way, but its been working for years successfully. In the past (Tiger and Leopard) we were handling rfcommChannelData delegate callbacks on a secondary thread - which allowed a blocking open-source library to be able to read data off of a queue as rfcommChannelData pushed the data received in.

Now, in Snow Leopard, this isn't working - all delegate and notification callbacks from IOBluetooth are happening on thread 1 (the main thread), which means that our code isn't working.

I suspect that what we're seeing is the correct behavior from IOBluetooth - comments here and there (including one from Jason Giles) point to the fact that IOBluetooth isn't thread safe and should be running entirely on the main thread.

My question: how much has the inter-thread operation of IOBluetooth changed in Snow Leopard, and is what I'm seeing expected behavior? There is pretty much no discoverable information about the thread safety of IOBluetooth, unfortunately.

Thanks in advance for any help possible.

b

********************
Brian M. Criscuolo

Lead Software Engineer
Mark/Space, Inc.
email@hidden
<http://www.markspace.com>

Synchronize:
Palm Prē | iPhone | BlackBerry | Windows Mobile | Palm OS | Symbian | Android | PSP | Macintosh | Windows







_______________________________________________ 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
  • Follow-Ups:
    • Re: Bluetooth on Snow Leopard
      • From: Camille Troillard <email@hidden>
  • Prev by Date: Re: Sending AVRCP Commands
  • Next by Date: Re: Bluetooth on Snow Leopard
  • Previous by thread: Re: Sending AVRCP Commands
  • Next by thread: Re: Bluetooth on Snow Leopard
  • Index(es):
    • Date
    • Thread