RegressionTests__SemaphoreTest.st
author Claus Gittinger <cg@exept.de>
Thu, 17 May 2018 23:11:54 +0200
changeset 1931 bdc99c92a5a6
parent 1447 2351db93aa5b
child 1567 e17701a073f9
child 2051 62ebd7e42570
permissions -rw-r--r--
initial checkin

"{ Package: 'stx:goodies/regression' }"

"{ NameSpace: RegressionTests }"

TestCase subclass:#SemaphoreTest
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'tests-Regression'
!


!SemaphoreTest methodsFor:'tests'!

testSpeed01
    |s t|

    s := Semaphore forMutualExclusion.
    t := Time millisecondsToRun:[
       1000000 timesRepeat:[ s critical:[1+1] ]
    ].
    Transcript showCR:t

    "
     self run:#testSpeed01
    "
! !

!SemaphoreTest class methodsFor:'documentation'!

version
    ^ '$Header$'
! !