Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Call ReleaseMutex() several times

2 views
Skip to first unread message

Back 9

unread,
Apr 25, 2008, 11:26:01 AM4/25/08
to
Hello,

Do you think it is harmless to call ReleaseMutex() several times for the
owner of the mutex?
I mean let's say thread A has a mutex by calling Wait..() and then with some
reason after the waiting function ReleaseMutex() is called several times.

Thanks

roge...@gmail.com

unread,
Apr 25, 2008, 12:59:45 PM4/25/08
to

Mostly you just waste CPU.

However you will cause trouble if the *caller* has locked the mutex
already.

Regards,
Roger.

m

unread,
Apr 26, 2008, 6:53:45 PM4/26/08
to
NO!

Hint: consider a recursively acquired mutex


"Back 9" <Ba...@discussions.microsoft.com> wrote in message
news:7A31800D-008C-4B45...@microsoft.com...

0 new messages