Remember me

Lost Password?

Register now!


Who's Online
108 user(s) are online (81 user(s) are browsing Forums)

Members: 2
Guests: 106

beanbandit, Bradsco, more...

Support us!


Report message:*

Re: Memory protection and tasks/processes

Subject: Re: Memory protection and tasks/processes
by billyfish on 2021/3/6 17:33:31


No idea if this is relevant but setting semaphore to NULL only affects the local copy of the semaphore variable in that function won't it? So if you're using the semaphore elsewhere in your program after calling this it will have been freed and won't be NULL. If you want it to be reflected elsewhere in the program, you'd need to pass in a struct SignalSemaphore **sem variable and set *sem to NULL.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project