File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
core/jvm/src/main/scala/cats/effect/unsafe Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -940,11 +940,11 @@ private[effect] final class WorkerThread[P <: AnyRef](
940
940
transferState.index = idx
941
941
transferState.tick = tick + 1
942
942
943
+ // Register this thread in the blockerThreads map
943
944
val _ = pool.blockerThreads.put(this , java.lang.Boolean .TRUE )
944
945
945
946
if (pool.transferStateQueue.offer(transferState)) {
946
947
// If successful, a waiting thread will pick it up
947
- // Register this thread in the blockerThreads map
948
948
949
949
} else {
950
950
// Spawn a new `WorkerThread`, a literal clone of this one. It is safe to
@@ -970,7 +970,7 @@ private[effect] final class WorkerThread[P <: AnyRef](
970
970
system,
971
971
_poller,
972
972
metrics,
973
- new WorkerThread . TransferState ,
973
+ transferState ,
974
974
pool)
975
975
// Make sure the clone gets our old name:
976
976
val clonePrefix = pool.threadPrefix
You can’t perform that action at this time.
0 commit comments