Skip to content

Commit

Permalink
Pass over pre/post actions in BaselineOfGToolkitPrerequisites [#3736]
Browse files Browse the repository at this point in the history
  • Loading branch information
chisandrei committed May 15, 2024
1 parent 35a1177 commit 6392d0a
Showing 1 changed file with 26 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,32 @@ Class {
#category : #BaselineOfGToolkitPrerequisites
}

{ #category : #accessing }
BaselineOfGToolkitPrerequisites >> applyPatchForJob [
self
forPharo12: []
forPharo11AndPharo10: [ Job addSlot: #announcer ]
]

{ #category : #accessing }
BaselineOfGToolkitPrerequisites >> applyPatchForWeakArray [
self
forPharo12: []
forPharo11AndPharo10: [
WeakArray
addClassVarNamed: 'MournLoopProcess';
addClassVarNamed: 'StopRequested';
addClassVarNamed: 'StoppedSemaphore';
initialize ]
]

{ #category : #accessing }
BaselineOfGToolkitPrerequisites >> baseline: spec [

<baseline>
spec for: #common do: [
spec preLoadDoIt: #preLoadGToolkit:.
spec postLoadDoIt: #postLoadGToolkit:.
spec preLoadDoIt: #preLoadGToolkitPrerequisites:.
spec postLoadDoIt: #postLoadGToolkitPrerequisites:.
spec
package: 'GToolkit-Pharo9-Deprecations';
package: 'GToolkit-Pharo9-Subscriptions' ;
Expand All @@ -23,25 +42,19 @@ BaselineOfGToolkitPrerequisites >> baseline: spec [
]

{ #category : #accessing }
BaselineOfGToolkitPrerequisites >> postLoadGToolkit: spec [
BaselineOfGToolkitPrerequisites >> postLoadGToolkitPrerequisites: spec [
(PostLoaded isNotNil and: [ PostLoaded ]) ifTrue: [ ^ self ].
PostLoaded := true.

WeakArray
addClassVarNamed: 'MournLoopProcess';
addClassVarNamed: 'StopRequested';
addClassVarNamed: 'StoppedSemaphore';
initialize.
self applyPatchForJob.
self applyPatchForWeakArray.
]

{ #category : #accessing }
BaselineOfGToolkitPrerequisites >> preLoadGToolkit: spec [
BaselineOfGToolkitPrerequisites >> preLoadGToolkitPrerequisites: spec [
(PreLoaded isNotNil and: [ PreLoaded ])
ifTrue: [ ^ self ].
PreLoaded := true.

self
forPharo12: []
forPharo11: [ Job addSlot: #announcer ]
forPharo10: [ Job addSlot: #announcer ]

]

0 comments on commit 6392d0a

Please sign in to comment.