Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

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

Members: 2
Guests: 80

flash, salass00, more...

Headlines

Report message:*
 

MutexAttemptWithSignal

Subject: MutexAttemptWithSignal
by sTix on 2021/8/22 22:50:31

I must be missing something very basic here:

APTR mtx AllocSysObjectTags(ASOT_MUTEXASOMUTEX_RecursiveFALSETAG_END);
MutexObtain(mtx);
uint32 sigmask MutexAttemptWithSignal(mtxSIGF_SINGLE);


Like I expect, the MutexAttemptWithSignal call hangs. If I use Scout to signal the task, it continues. That's also what I would expect. But sigmask is 0. If I understand the documentation correctly it should have been SIGF_SINGLE, shouldn't it?

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project