RegressionTests__SemaphoreTest.st
author convert-repo
Wed, 04 Jul 2018 03:33:29 +0000
changeset 1985 89923f26ec8a
parent 1447 2351db93aa5b
child 1567 e17701a073f9
child 2051 62ebd7e42570
permissions -rw-r--r--
update tags

"{ 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$'
! !