Skip to content

Commit

Permalink
Setting a block and not an owner in version <=10
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed May 6, 2024
1 parent 6049343 commit 414bb91
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/MuTalk-Model/MTProgressBarLogger.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ Class {
MTProgressBarLogger >> initialize [

mainJob := Job new.
mainJob owner: thisContext.
SystemVersion current major <= 10 ifTrue: [
"Jobs need a block below P10 to have an owner?"
mainJob block: [ ].
].
mainJob
min: 0;
max: 4.
Expand All @@ -27,11 +30,14 @@ MTProgressBarLogger >> initialize [
MTProgressBarLogger >> initializeMethodJob: size [

methodJob := Job new
owner: thisContext;
min: 0;
max: size;
prepareForRunning;
yourself
yourself.

SystemVersion current major <= 10 ifTrue: [
"Jobs need a block below P10 to have an owner?"
methodJob block: [ ] ]
]

{ #category : 'initialization' }
Expand All @@ -42,7 +48,10 @@ MTProgressBarLogger >> initializeMutantJob: size [
min: 0;
max: size;
prepareForRunning;
yourself
yourself.
SystemVersion current major <= 10 ifTrue: [
"Jobs need a block below P10 to have an owner?"
mutantJob block: [ ] ]
]

{ #category : 'initialization' }
Expand All @@ -53,7 +62,12 @@ MTProgressBarLogger >> initializeTestJob: size [
min: 0;
max: size;
prepareForRunning;
yourself
yourself.

SystemVersion current major <= 10 ifTrue: [
"Jobs need a block below P10 to have an owner?"
testJob block: [ ].
].
]

{ #category : 'logging' }
Expand Down

0 comments on commit 414bb91

Please sign in to comment.