[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread (usually) not doing what I'd expect

From: Graham J Lee
Subject: Re: Thread (usually) not doing what I'd expect
Date: Tue, 7 Nov 2006 15:10:40 +0000

On 7 Nov 2006, at 14:49, Richard Frith-Macdonald wrote:

There is a bug in your code in the main() function ... the intention is plainly to busy loop in the main thread doing a tryLock until the detached thread releases the lock, but you don't actually wait for the detached thread to aquire the lock in the first place ...

Ah yes, thanks for that :-). I obviously forgot to take my brain out of sequential mode before writing threaded code...I need to get an Occam filter for my tinfoil hat ;-).


Graham J Lee

reply via email to

[Prev in Thread] Current Thread [Next in Thread]