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

commits at source.squeak.org commits at source.squeak.org
Thu Jun 16 23:19:06 UTC 2016


Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1029.mcz

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

Name: Kernel-eem.1029
Author: eem
Time: 16 June 2016, 4:17:52.232323 pm
UUID: 118ce27e-414e-4a37-940d-ce167fa5afb7
Ancestors: Kernel-mt.1028

Supply missing simulation methods for the new Mutex primitives and hence render through on code like the following funcitonal again:

Mutex new critical:
	[[Object new]
		on: Notification
		do: [:noti| ]]

=============== Diff against Kernel-mt.1028 ===============

Item was added:
+ ----- Method: Mutex>>primitiveEnterCriticalSectionOnBehalfOf: (in category 'system simulation') -----
+ primitiveEnterCriticalSectionOnBehalfOf: effectiveProcess
+ 	"Primitive. Simulate primitiveEnterCriticalSection.  The receiver
+ 	 must be unowned or owned by the effectiveProcess to proceed.
+ 	 Answer if the process is already owned by the current process."
+ 	<primitive: 186>
+ 	^{ContextPart primitiveFailToken. nil}!

Item was added:
+ ----- Method: Mutex>>primitiveTestAndSetOwnershipOfCriticalSectionOnBehalfOf: (in category 'system simulation') -----
+ primitiveTestAndSetOwnershipOfCriticalSectionOnBehalfOf: effectiveProcess
+ 	"Primitive. Simulate primitiveEnterCriticalSection.  Attempt to set the ownership
+ 	 of the receiver.  If the receiver is unowned set its owningProcess to the
+ 	 effectiveProcess and answer false.  If the receiver is owned by the effectiveProcess
+ 	 answer true.  If the receiver is owned by some other process answer nil."
+ 	<primitive: 187>
+ 	^{ContextPart primitiveFailToken. nil}!



More information about the Squeak-dev mailing list