Remember me

Lost Password?

Register now!


Who's Online
95 user(s) are online (65 user(s) are browsing Forums)

Members: 1
Guests: 94

samo79, more...


Report message:*

Re: MutexAttemptWithSignal

Subject: Re: MutexAttemptWithSignal
by salass00 on 2021/8/23 16:22:25


To be honest I'm not really sure what the purpose of non-recursive mutices is (as they do not save memory or CPU time AFAIK) and what exactly the correct behavior should be for your code.

What happens however for your code is that after returning from Wait(SIGF_SINGLE|sigmask) MutexAttemptWithSignal() checks if it is now the owner of the mutex in question and if it is it always returns zero indicating that the mutex was successfully obtained.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project