[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] [PATCH] kernel: Check the Semaphore before queuing
Holger Hans Peter Freyther
Re: [Help-smalltalk] [PATCH] kernel: Check the Semaphore before queuing the interrupt
Mon, 20 Jan 2014 20:30:09 +0100
On Mon, Jan 20, 2014 at 05:30:52PM +0100, Paolo Bonzini wrote:
> The patch looks good.
> Alternatively, what about this? It is a bit clearer to me, but the
> logic is pretty much the same.
> (self timedWaitOn: sem) ifTrue: [
> - proc signalInterrupt: (Kernel.TimeoutNotification on:
> + timeout = 0 ifTrue: [
> + proc signalInterrupt: (Kernel.TimeoutNotification on:
If we ever get the execution of multiple native processes the timeout
code and the aBlock ensure: could run at the same time. How would we
make that mutual exclusive? add a lock/token then?