[squeak-dev] The Trunk: Kernel-eem.1182.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jul 27 03:33:56 UTC 2018

Eliot Miranda uploaded a new version of Kernel to project The Trunk:

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

Name: Kernel-eem.1182
Author: eem
Time: 26 July 2018, 8:33:34.998936 pm
UUID: 4d10c2e2-c1b7-4ba0-b208-b018f0f099e9
Ancestors: Kernel-eem.1181

Add an accessor for Mutex being owned, for use in tests.

=============== Diff against Kernel-eem.1181 ===============

Item was added:
+ ----- Method: Mutex>>isOwned (in category 'testing') -----
+ isOwned
+ 	"Answer if the receiver is owned.  DO NOT USE THIS IN NORMAL CODE.
+ 	 This exists for the MutexTests so they don't have to use e.g. instVarNamed:.
+ 	 N.B. don't use notNil because that is a real send and preemptable."
+ 	^nil ~~ owner!

More information about the Squeak-dev mailing list