[V3dot10] Believe or not, a case for Inspector Morse...

Edgar J. De Cleene edgardec2001 at yahoo.com.ar
Mon Oct 8 14:29:39 UTC 2007


And I sorry if you never saw the 80 British series

Seems the problem is this, I attach for a early preview.
I running more test, so stay tunned and maybe we could made the cake and eat
too.

Very, very thanks to Ralph, Andreas and all Mantis bug chasers.

Edgar

-------------- next part --------------
'From Squeak3.10beta of 22 July 2007 [latest update: #7154] on 8 October 2007 at 11:25:57 am'!

!SemaphoreTest methodsFor: 'testing' stamp: 'jf 12/2/2003 19:31'!
testWaitAndWaitTimeoutTogether
	| semaphore value waitProcess waitTimeoutProcess |
	semaphore _ Semaphore new.
	
	waitProcess _ [semaphore wait. value _ #wait] fork.

	waitTimeoutProcess _ [semaphore waitTimeoutMSecs: 50. value _ #waitTimeout] fork.

	"Wait for the timeout to happen"
	(Delay forMilliseconds: 100) wait.

	"The waitTimeoutProcess should already have timed out.  This should release the waitProcess"
	semaphore signal.

	[waitProcess isTerminated and: [waitTimeoutProcess isTerminated]]
		whileFalse: [(Delay forMilliseconds: 100) wait].

	self assert: value = #wait.
	! !


More information about the V3dot10 mailing list