At 08:40 AM 8/6/00 -0400, John Tobey wrote:
>Chaim Frenkel <[EMAIL PROTECTED]> wrote:
> > >> If the sync data is in the SV, I believe there is a race
> > >> condition between the destruction and grabbing a lock.
> >
> > DS> Nope. If the variable is shared, the lock will need to be taken
> > DS> to destroy it. If it's not shared it's not an issue.
> >
> > How can you grab the lock if the data is destroyed? I think the
> > locking structure has to be outside the thing being locked.
>
>Umm, you lock the data, then you destroy it.  Destruction is just like
>any other modification, except that there's nothing left to unlock
>when you're done.  Hmm, how do we politely tell the guy waiting for
>the lock we destroyed to have better luck next time...

If there's someone waiting for it, then it means it wasn't a candidate for 
destruction and we made a whoops somewhere.


                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to