atomic-ruby 0.11.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a9ae1ba9062331be3f6a5d74f170dbf88eb2ce6b142f3ef5077194ddeb1295e
4
- data.tar.gz: 652fbf6d04d6efa3d57fc37643f85241e685950320d343e2341c155b0539bf93
3
+ metadata.gz: 0171c5fec65586e1a6b090b65e266a8c4fa88c5a3fa7c98e6c41c5fd63654f31
4
+ data.tar.gz: aa26033345014a3d64ff81faa7ac812fc3de3d4189f9c59d0f559684429d7540
5
5
  SHA512:
6
- metadata.gz: 686a5aaeef7250102c57a7b5b9b2dbe5cdbe45105428a98217545d6c3b1183ef79696f64b5a7aa1135a0f260bdcb8c50b53b4455dc60785977687d62b8b3c47a
7
- data.tar.gz: 2141ed20f4baf5e2f8cf175c69b8003bf62413e1e312b5b8bf402ea762d409bcbfc72bfc14955d6aa4319ee719c6d28880055e954d2bb69278f9154d71b5a970
6
+ metadata.gz: 226c50dd465ec5f255f6b5a2991e64939bcdf77d08ecdda4f9c6aea8ee68de16cdb46ac2be7b6705417b316a40a4c4159cf21b4eef34759f0bc939a544930f50
7
+ data.tar.gz: 4e80ac5fc97aed98950779897c5308d5d3f8180424cca09e4af611d980570b67b3305a1bc0557f8d4278a6b618f7c3ee69d2a60935764e5f59f7769f04711967
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.12.0] - 2026-05-18
4
+
5
+ - Wake idle `AtomicThreadPool` workers on enqueue
6
+
3
7
  ## [0.11.1] - 2026-05-17
4
8
 
5
9
  - Replace `Thread.pass` busy-wait with `sleep` in idle `AtomicThreadPool` workers
data/README.md CHANGED
@@ -381,11 +381,11 @@ puts "Atomic Ruby Atomic Thread Pool: #{results[1].real.round(6)} seconds"
381
381
 
382
382
  ruby version: ruby 4.0.4 (2026-05-12 revision b89eb1bcbf) +YJIT +PRISM [arm64-darwin23]
383
383
  concurrent-ruby version: 1.3.6
384
- atomic-ruby version: 0.11.1
384
+ atomic-ruby version: 0.12.0
385
385
 
386
386
  Benchmark Results:
387
- Concurrent Ruby Thread Pool: 5.869825 seconds
388
- Atomic Ruby Atomic Thread Pool: 5.387304 seconds
387
+ Concurrent Ruby Thread Pool: 5.987538 seconds
388
+ Atomic Ruby Atomic Thread Pool: 5.528936 seconds
389
389
  ```
390
390
 
391
391
  </details>
@@ -126,6 +126,8 @@ module AtomicRuby
126
126
  end
127
127
  end
128
128
  raise EnqueuedWorkAfterShutdownError if state[:shutdown]
129
+
130
+ @threads.each(&:wakeup)
129
131
  end
130
132
 
131
133
  # Returns the number of currently alive worker threads.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AtomicRuby
4
- VERSION = "0.11.1"
4
+ VERSION = "0.12.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atomic-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Young