Re: Thread issue - sure can use some help
Re: Thread issue - sure can use some help
- Subject: Re: Thread issue - sure can use some help
- From: Jens Ayton <email@hidden>
- Date: Sun, 09 Apr 2006 02:28:45 +0200
- Openpgp: id=84FF254B
John Draper:
Jeff Moore:
I'm not an ObjC expert, but I think the @synchronize directive works
more or less like synchronized methods in Java do.
Many people have mentioned this, but when I ask them about how to use
it, I just get blank stares. I found just ONE technote that mentioned
> it, but no mention about the object I pass it and what it does. Is
> this the object that has the data structures I'm to protect? or is this
the object pointing to the class I'm in when I call it?
As I understand it, the object is essentially arbitrary. It is used
as the key to look up (or create as necessary) a recursive mutex, which
is presumably destroyed when the object is deallocated. As such, every
object pointer identifies a mutex. As such, it's logical to choose an
object representing the required degree of granularity - either the root
object of a larger structure, or the specific object which is being
modified.
--
Jens Ayton
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden