[interfacekit] Re: Fwd: BAutolock

"burton666@xxxxxxxxx" <burton666@xxxxxxxxx> wrote:
> > Without checking for the return argument of acquire_sem() safely in 
> > the 
> > kernel, but not in userland. The only reason why the above call 
> > would 
> So, in userland, we should always do 
> 
> while(acquire_sem(someLock) == B_INTERRUPTED)
>      ;
> 
> right?

Depending on what you want to do, yes :-)

> Even in case of acquire_sem_etc() calls ?

Yes. The B_CAN_INTERRUPT flag is always set for userland semaphores.

> If so, you should better run and fix the opentracker right now :PPP,
> since there is EXACTLY one acquire_sem_etc call around which is 
> not like this :P

Oh my god :-)

Adios...
   Axel.


Other related posts: