Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2005-09-12 11:19:48


>I have come across another problem:
>
> You might try to CloseHandle on the mutex while another thread is still
> waiting on this.
> While the documentation is explicit about a dying thread that did not
> realease a mutex
> he had a hold on (it is abandoned then), I could nothing find for the
> other case.
>
> Any ideas?

I don't think that's a problem, if the other thread is waiting on the mutex
then it has it's own handle to the mutex open, so the mutex doesn't actually
get deleted as a system object until the last waiting thread has completed
it's wait and closed it's own handle.

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk