RegressionTests__SemaphoreTest.st
author Claus Gittinger <cg@exept.de>
Wed, 01 May 2019 22:49:33 +0200
changeset 2221 614559965830
parent 2051 62ebd7e42570
permissions -rw-r--r--
initial checkin class: RegressionTests::ValueHolderTests added: #test01_BlockValue class: RegressionTests::ValueHolderTests class

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

"{ NameSpace: RegressionTests }"

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


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