Skip to content

Commit

Permalink
[feenkcom/gtoolkit#2852] in the workers view show if worker is waitin…
Browse files Browse the repository at this point in the history
…g on a semaphore
  • Loading branch information
syrel committed Mar 27, 2024
1 parent d6f73cf commit a7f43c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/GToolkit-Extensions/AsyncFutureThreadPool.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ AsyncFutureThreadPool >> gtWorkersFor: aView [
size := each key pendingQueueSize.
size isZero ifTrue: [ '' ] ifFalse: [ size ] ];
column: 'Busy'
text: [ :each | each key isBusy ifFalse: [ '' ] ifTrue: [ 'true' ] ];
text: [ :each |
each key isBusy
ifFalse: [ '' ]
ifTrue: [
each key isWaitingOnSemaphore
ifTrue: [ 'true (waiting)' ]
ifFalse: [ 'true' ] ] ];
column: 'Running'
text: [ :each | each key isRunning ifFalse: [ '' ] ifTrue: [ 'true' ] ];
send: [ :each | each key ];
Expand Down

0 comments on commit a7f43c2

Please sign in to comment.