added some code for implementing semaphore

This commit is contained in:
hyunghwan.chung
2016-02-29 15:27:10 +00:00
parent 351239bdf4
commit 55a43371d5
7 changed files with 71 additions and 52 deletions

View File

@ -199,13 +199,23 @@
self > 0 ifTrue: [^1].
^0.
}
}
#class SmallInteger(Number)
#class Integer(Number)
{
#method timesRepeat: aBlock
{
1 to: self by: 1 do: [ :count | aBlock value ].
}
}
#class SmallInteger(Integer)
{
}
#class(#liword) LargeInteger(Number)
#class(#liword) LargeInteger(Integer)
{
}