Re: using grand central dispatch with c++ for inter-thread communication
Re: using grand central dispatch with c++ for inter-thread communication
- Subject: Re: using grand central dispatch with c++ for inter-thread communication
- From: Joel Reymont <email@hidden>
- Date: Wed, 21 Apr 2010 16:45:10 +0100
On Apr 21, 2010, at 4:14 PM, Brian Bechtel wrote:
> Wouldn't pointing directly to the article be more efficient?
>
> <http://wagerlabs.com/grand-central-dispatch-c-and-inter-thread-com>
A bit of context is probably due...
I wrote a user land USB driver and packaged it in a framework. The framework starts the driver in a new thread upon initialization. I needed the separate thread and needed a way to talk to it.
I explored Mach ports but these turned out to be too painful. Grand Central Dispatch, on the other hand, turned out to be the answer to my prayers. I can shuffle code and data back with no problems whatsoever.
As a bonus, my API calls are queued and serialized for me so I don't need to lock portions of the driver for concurrent access.
---
http://es.linkedin.com/in/joelreymont
http://twitter.com/wagerlabs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden