[squeak-dev] The Trunk: Chronology-Core-mt.71.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jul 5 08:39:01 UTC 2021


Marcel Taeumel uploaded a new version of Chronology-Core to project The Trunk:
http://source.squeak.org/trunk/Chronology-Core-mt.71.mcz

==================== Summary ====================

Name: Chronology-Core-mt.71
Author: mt
Time: 5 July 2021, 10:38:58.639527 am
UUID: b03b0fa0-69da-8947-97d1-ec404b609df3
Ancestors: Chronology-Core-mt.70, Chronology-Core-ct.67

Merges #busyWait from Chronology-Core-ct.67 but moves implementation to Delay for better polymorphism.

=============== Diff against Chronology-Core-mt.70 ===============

Item was added:
+ ----- Method: Duration>>busyWait (in category 'squeak protocol') -----
+ busyWait
+ 	"BEWARE!! This method is more precise than #wait, but it sacrifices many CPU cycles for that precision. Also note that only processes with a higher priority can run while waiting. See more detailed commentary in Delay >> #busyWait."
+ 
+ 	^ self asDelay busyWait!

Item was changed:
  ----- Method: Duration>>wait (in category 'squeak protocol') -----
  wait
+ 	"Convert this duration in a delay and wait once. Answer the created delay so that the client can wait on it again if needed. NOTE THAT for delays shorter than 50 milliseconds, you might want to use #busyWait for greater precision if the higher CPU load and restricted process scheduling are not an issue. See commentary in #busyWait."
- 	"Convert this duration in a delay and wait once. Answer the created delay so that the client can wait on it again if needed."
  	
  	"[3 seconds wait] timeToRun"
  	
  	^self asDelay wait!



More information about the Squeak-dev mailing list