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: John Draper <email@hidden>
- Date: Tue, 11 Apr 2006 12:32:53 -0700
Jens Ayton wrote:
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.
Can you translate that into English, in such a way as to allow me to
determine which Object I'm
supposed to pass to @synchronize? I still don't have an answer to that.
John
_______________________________________________
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