o-concurrent-ruby-ext 1.1.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c0a9a960998fcf6e57bbea069e7289b3dd137bad0ea31fa51fe56b0cafcc4529
4
+ data.tar.gz: bc03c106e643ced83b9116755b5d93b862ac2adfbc0dc41918d9f07bff5587f1
5
+ SHA512:
6
+ metadata.gz: 4d415b4f2289837fc620b095a118b4ee20ec48ba0cc1649745717b9a2577d28830d78f8de88ea1fa957d229919c7db9bb1670cb838fcb26e227a591a488eff6c
7
+ data.tar.gz: aa8c981d83f096aa2d46577be548e5d763dfc4fb56e2e666253c9d99d4d84e7827c97e018b4b23a24527d241a5093b2531cb22911ec920215352de71858fead0
data/CHANGELOG.md ADDED
@@ -0,0 +1,542 @@
1
+ ## Current
2
+
3
+ ## Release v1.1.10
4
+
5
+ concurrent-ruby:
6
+
7
+ * (#951) Set the Ruby compatibility version at 2.2
8
+ * (#939, #933) The `caller_runs` fallback policy no longer blocks reads from the job queue by worker threads
9
+ * (#938, #761, #652) You can now explicitly `prune_pool` a thread pool (Sylvain Joyeux)
10
+ * (#937, #757, #670) We switched the Yahoo stock API for demos to Alpha Vantage (Gustavo Caso)
11
+ * (#932, #931) We changed how `SafeTaskExecutor` handles local jump errors (Aaron Jensen)
12
+ * (#927) You can use keyword arguments in your initialize when using `Async` (Matt Larraz)
13
+ * (#926, #639) We removed timeout from `TimerTask` because it wasn't sound, and now it's a no-op with a warning (Jacob Atzen)
14
+ * (#919) If you double-lock a re-entrant read-write lock, we promote to locked for writing (zp yuan)
15
+ * (#915) `monotonic_time` now accepts an optional unit parameter, as Ruby's `clock_gettime` (Jean Boussier)
16
+
17
+ ## Release v1.1.9 (5 Jun 2021)
18
+
19
+ concurrent-ruby:
20
+
21
+ * (#866) Child promise state not set to :pending immediately after #execute when parent has completed
22
+ * (#905, #872) Fix RubyNonConcurrentPriorityQueue#delete method
23
+ * (2df0337d) Make sure locks are not shared on shared when objects are dup/cloned
24
+ * (#900, #906, #796, #847, #911) Fix Concurrent::Set tread-safety issues on CRuby
25
+ * (#907) Add new ConcurrentMap backend for TruffleRuby
26
+
27
+ ## Release v1.1.8 (20 January 2021)
28
+
29
+ concurrent-ruby:
30
+
31
+ * (#885) Fix race condition in TVar for stale reads
32
+ * (#884) RubyThreadLocalVar: Do not iterate over hash which might conflict with new pair addition
33
+
34
+ ## Release v1.1.7 (6 August 2020)
35
+
36
+ concurrent-ruby:
37
+
38
+ * (#879) Consider falsy value on `Concurrent::Map#compute_if_absent` for fast non-blocking path
39
+ * (#876) Reset Async queue on forking, makes Async fork-safe
40
+ * (#856) Avoid running problematic code in RubyThreadLocalVar on MRI that occasionally results in segfault
41
+ * (#853) Introduce ThreadPoolExecutor without a Queue
42
+
43
+ ## Release v1.1.6, edge v0.6.0 (10 Feb 2020)
44
+
45
+ concurrent-ruby:
46
+
47
+ * (#841) Concurrent.disable_at_exit_handlers! is no longer needed and was deprecated.
48
+ * (#841) AbstractExecutorService#auto_terminate= was deprecated and has no effect.
49
+ Set :auto_terminate option instead when executor is initialized.
50
+
51
+ ## Release v1.1.6.pre1, edge v0.6.0.pre1 (26 Jan 2020)
52
+
53
+ concurrent-ruby:
54
+
55
+ * (#828) Allow to name executors, the name is also used to name their threads
56
+ * (#838) Implement #dup and #clone for structs
57
+ * (#821) Safer finalizers for thread local variables
58
+ * Documentation fixes
59
+ * (#814) Use Ruby's Etc.nprocessors if available
60
+ * (#812) Fix directory structure not to mess with packaging tools
61
+ * (#840) Fix termination of pools on JRuby
62
+
63
+ concurrent-ruby-edge:
64
+
65
+ * Add WrappingExecutor (#830)
66
+
67
+ ## Release v1.1.5, edge v0.5.0 (10 Mar 2019)
68
+
69
+ concurrent-ruby:
70
+
71
+ * fix potential leak of context on JRuby and Java 7
72
+
73
+ concurrent-ruby-edge:
74
+
75
+ * Add finalized Concurrent::Cancellation
76
+ * Add finalized Concurrent::Throttle
77
+ * Add finalized Concurrent::Promises::Channel
78
+ * Add new Concurrent::ErlangActor
79
+
80
+ ## Release v1.1.4 (14 Dec 2018)
81
+
82
+ * (#780) Remove java_alias of 'submit' method of Runnable to let executor service work on java 11
83
+ * (#776) Fix NameError on defining a struct with a name which is already taken in an ancestor
84
+
85
+ ## Release v1.1.3 (7 Nov 2018)
86
+
87
+ * (#775) fix partial require of the gem (although not officially supported)
88
+
89
+ ## Release v1.1.2 (6 Nov 2018)
90
+
91
+ * (#773) more defensive 1.9.3 support
92
+
93
+ ## Release v1.1.1, edge v0.4.1 (1 Nov 2018)
94
+
95
+ * (#768) add support for 1.9.3 back
96
+
97
+ ## Release v1.1.0, edge v0.4.0 (31 OCt 2018) (yanked)
98
+
99
+ * (#768) yanked because of issues with removed 1.9.3 support
100
+
101
+ ## Release v1.1.0.pre2, edge v0.4.0.pre2 (18 Sep 2018)
102
+
103
+ concurrent-ruby:
104
+
105
+ * fixed documentation and README links
106
+ * fix Set for TruffleRuby and Rubinius
107
+ * use properly supported TruffleRuby APIs
108
+
109
+ concurrent-ruby-edge:
110
+
111
+ * add Promises.zip_futures_over_on
112
+
113
+ ## Release v1.1.0.pre1, edge v0.4.0.pre1 (15 Aug 2018)
114
+
115
+ concurrent-ruby:
116
+
117
+ * requires at least Ruby 2.0
118
+ * [Promises](http://ruby-concurrency.github.io/concurrent-ruby/1.1.0/Concurrent/Promises.html)
119
+ are moved from `concurrent-ruby-edge` to `concurrent-ruby`
120
+ * Add support for TruffleRuby
121
+ * (#734) Fix Array/Hash/Set construction broken on TruffleRuby
122
+ * AtomicReference fixed
123
+ * CI stabilization
124
+ * remove sharp dependency edge -> core
125
+ * remove warnings
126
+ * documentation updates
127
+ * Exchanger is no longer documented as edge since it was already available in
128
+ `concurrent-ruby`
129
+ * (#644) Fix Map#each and #each_pair not returning enumerator outside of MRI
130
+ * (#659) Edge promises fail during error handling
131
+ * (#741) Raise on recursive Delay#value call
132
+ * (#727) #717 fix global IO executor on JRuby
133
+ * (#740) Drop support for CRuby 1.9, JRuby 1.7, Rubinius.
134
+ * (#737) Move AtomicMarkableReference out of Edge
135
+ * (#708) Prefer platform specific memory barriers
136
+ * (#735) Fix wrong expected exception in channel spec assertion
137
+ * (#729) Allow executor option in `Promise#then`
138
+ * (#725) fix timeout check to use timeout_interval
139
+ * (#719) update engine detection
140
+ * (#660) Add specs for Promise#zip/Promise.zip ordering
141
+ * (#654) Promise.zip execution changes
142
+ * (#666) Add thread safe set implementation
143
+ * (#651) #699 #to_s, #inspect should not output negative object IDs.
144
+ * (#685) Avoid RSpec warnings about raise_error
145
+ * (#680) Avoid RSpec monkey patching, persist spec results locally, use RSpec
146
+ v3.7.0
147
+ * (#665) Initialize the monitor for new subarrays on Rubinius
148
+ * (#661) Fix error handling in edge promises
149
+
150
+ concurrent-ruby-edge:
151
+
152
+ * (#659) Edge promises fail during error handling
153
+ * Edge files clearly separated in `lib-edge`
154
+ * added ReInclude
155
+
156
+ ## Release v1.0.5, edge v0.3.1 (26 Feb 2017)
157
+
158
+ concurrent-ruby:
159
+
160
+ * Documentation for Event and Semaphore
161
+ * Use Unsafe#fullFence and #loadFence directly since the shortcuts were removed in JRuby
162
+ * Do not depend on org.jruby.util.unsafe.UnsafeHolder
163
+
164
+ concurrent-ruby-edge:
165
+
166
+ * (#620) Actors on Pool raise an error
167
+ * (#624) Delayed promises did not interact correctly with flatting
168
+ * Fix arguments yielded by callback methods
169
+ * Overridable default executor in promises factory methods
170
+ * Asking actor to terminate will always resolve to `true`
171
+
172
+ ## Release v1.0.4, edge v0.3.0 (27 Dec 2016)
173
+
174
+ concurrent-ruby:
175
+
176
+ * Nothing
177
+
178
+ concurrent-ruby-edge:
179
+
180
+ * New promises' API renamed, lots of improvements, edge bumped to 0.3.0
181
+ * **Incompatible** with previous 0.2.3 version
182
+ * see https://github.com/ruby-concurrency/concurrent-ruby/pull/522
183
+
184
+ ## Release v1.0.3 (17 Dec 2016)
185
+
186
+ * Trigger execution of flattened delayed futures
187
+ * Avoid forking for processor_count if possible
188
+ * Semaphore Mutex and JRuby parity
189
+ * Adds Map#each as alias to Map#each_pair
190
+ * Fix uninitialized instance variables
191
+ * Make Fixnum, Bignum merger ready
192
+ * Allows Promise#then to receive an executor
193
+ * TimerSet now survives a fork
194
+ * Reject promise on any exception
195
+ * Allow ThreadLocalVar to be initialized with a block
196
+ * Support Alpha with `Concurrent::processor_count`
197
+ * Fixes format-security error when compiling ruby_193_compatible.h
198
+ * Concurrent::Atom#swap fixed: reraise the exceptions from block
199
+
200
+ ## Release v1.0.2 (2 May 2016)
201
+
202
+ * Fix bug with `Concurrent::Map` MRI backend `#inspect` method
203
+ * Fix bug with `Concurrent::Map` MRI backend using `Hash#value?`
204
+ * Improved documentation and examples
205
+ * Minor updates to Edge
206
+
207
+ ## Release v1.0.1 (27 February 2016)
208
+
209
+ * Fix "uninitialized constant Concurrent::ReentrantReadWriteLock" error.
210
+ * Better handling of `autoload` vs. `require`.
211
+ * Improved API for Edge `Future` zipping.
212
+ * Fix reference leak in Edge `Future` constructor .
213
+ * Fix bug which prevented thread pools from surviving a `fork`.
214
+ * Fix bug in which `TimerTask` did not correctly specify all its dependencies.
215
+ * Improved support for JRuby+Truffle
216
+ * Improved error messages.
217
+ * Improved documentation.
218
+ * Updated README and CONTRIBUTING.
219
+
220
+ ## Release v1.0.0 (13 November 2015)
221
+
222
+ * Rename `attr_volatile_with_cas` to `attr_atomic`
223
+ * Add `clear_each` to `LockFreeStack`
224
+ * Update `AtomicReference` documentation
225
+ * Further updates and improvements to the synchronization layer.
226
+ * Performance and memory usage performance with `Actor` logging.
227
+ * Fixed `ThreadPoolExecutor` task count methods.
228
+ * Improved `Async` performance for both short and long-lived objects.
229
+ * Fixed bug in `LockFreeLinkedSet`.
230
+ * Fixed bug in which `Agent#await` triggered a validation failure.
231
+ * Further `Channel` updates.
232
+ * Adopted a project Code of Conduct
233
+ * Cleared interpreter warnings
234
+ * Fixed bug in `ThreadPoolExecutor` task count methods
235
+ * Fixed bug in 'LockFreeLinkedSet'
236
+ * Improved Java extension loading
237
+ * Handle Exception children in Edge::Future
238
+ * Continued improvements to channel
239
+ * Removed interpreter warnings.
240
+ * Shared constants now in `lib/concurrent/constants.rb`
241
+ * Refactored many tests.
242
+ * Improved synchronization layer/memory model documentation.
243
+ * Bug fix in Edge `Future#flat`
244
+ * Brand new `Channel` implementation in Edge gem.
245
+ * Simplification of `RubySingleThreadExecutor`
246
+ * `Async` improvements
247
+ - Each object uses its own `SingleThreadExecutor` instead of the global thread pool.
248
+ - No longers supports executor injection
249
+ - Much better documentation
250
+ * `Atom` updates
251
+ - No longer `Dereferenceable`
252
+ - Now `Observable`
253
+ - Added a `#reset` method
254
+ * Brand new `Agent` API and implementation. Now functionally equivalent to Clojure.
255
+ * Continued improvements to the synchronization layer
256
+ * Merged in the `thread_safe` gem
257
+ - `Concurrent::Array`
258
+ - `Concurrent::Hash`
259
+ - `Concurrent::Map` (formerly ThreadSafe::Cache)
260
+ - `Concurrent::Tuple`
261
+ * Minor improvements to Concurrent::Map
262
+ * Complete rewrite of `Exchanger`
263
+ * Removed all deprecated code (classes, methods, constants, etc.)
264
+ * Updated Agent, MutexAtomic, and BufferedChannel to inherit from Synchronization::Object.
265
+ * Many improved tests
266
+ * Some internal reorganization
267
+
268
+ ## Release v0.9.1 (09 August 2015)
269
+
270
+ * Fixed a Rubiniux bug in synchronization object
271
+ * Fixed all interpreter warnings (except circular references)
272
+ * Fixed require statements when requiring `Atom` alone
273
+ * Significantly improved `ThreadLocalVar` on non-JRuby platforms
274
+ * Fixed error handling in Edge `Concurrent.zip`
275
+ * `AtomicFixnum` methods `#increment` and `#decrement` now support optional delta
276
+ * New `AtomicFixnum#update` method
277
+ * Minor optimizations in `ReadWriteLock`
278
+ * New `ReentrantReadWriteLock` class
279
+ * `ThreadLocalVar#bind` method is now public
280
+ * Refactored many tests
281
+
282
+ ## Release v0.9.0 (10 July 2015)
283
+
284
+ * Updated `AtomicReference`
285
+ - `AtomicReference#try_update` now simply returns instead of raising exception
286
+ - `AtomicReference#try_update!` was added to raise exceptions if an update
287
+ fails. Note: this is the same behavior as the old `try_update`
288
+ * Pure Java implementations of
289
+ - `AtomicBoolean`
290
+ - `AtomicFixnum`
291
+ - `Semaphore`
292
+ * Fixed bug when pruning Ruby thread pools
293
+ * Fixed bug in time calculations within `ScheduledTask`
294
+ * Default `count` in `CountDownLatch` to 1
295
+ * Use monotonic clock for all timers via `Concurrent.monotonic_time`
296
+ - Use `Process.clock_gettime(Process::CLOCK_MONOTONIC)` when available
297
+ - Fallback to `java.lang.System.nanoTime()` on unsupported JRuby versions
298
+ - Pure Ruby implementation for everything else
299
+ - Effects `Concurrent.timer`, `Concurrent.timeout`, `TimerSet`, `TimerTask`, and `ScheduledTask`
300
+ * Deprecated all clock-time based timer scheduling
301
+ - Only support scheduling by delay
302
+ - Effects `Concurrent.timer`, `TimerSet`, and `ScheduledTask`
303
+ * Added new `ReadWriteLock` class
304
+ * Consistent `at_exit` behavior for Java and Ruby thread pools.
305
+ * Added `at_exit` handler to Ruby thread pools (already in Java thread pools)
306
+ - Ruby handler stores the object id and retrieves from `ObjectSpace`
307
+ - JRuby disables `ObjectSpace` by default so that handler stores the object reference
308
+ * Added a `:stop_on_exit` option to thread pools to enable/disable `at_exit` handler
309
+ * Updated thread pool docs to better explain shutting down thread pools
310
+ * Simpler `:executor` option syntax for all abstractions which support this option
311
+ * Added `Executor#auto_terminate?` predicate method (for thread pools)
312
+ * Added `at_exit` handler to `TimerSet`
313
+ * Simplified auto-termination of the global executors
314
+ - Can now disable auto-termination of global executors
315
+ - Added shutdown/kill/wait_for_termination variants for global executors
316
+ * Can now disable auto-termination for *all* executors (the nuclear option)
317
+ * Simplified auto-termination of the global executors
318
+ * Deprecated terms "task pool" and "operation pool"
319
+ - New terms are "io executor" and "fast executor"
320
+ - New functions added with new names
321
+ - Deprecation warnings added to functions referencing old names
322
+ * Moved all thread pool related functions from `Concurrent::Configuration` to `Concurrent`
323
+ - Old functions still exist with deprecation warnings
324
+ - New functions have updated names as appropriate
325
+ * All high-level abstractions default to the "io executor"
326
+ * Fixed bug in `Actor` causing it to prematurely warm global thread pools on gem load
327
+ - This also fixed a `RejectedExecutionError` bug when running with minitest/autorun via JRuby
328
+ * Moved global logger up to the `Concurrent` namespace and refactored the code
329
+ * Optimized the performance of `Delay`
330
+ - Fixed a bug in which no executor option on construction caused block execution on a global thread pool
331
+ * Numerous improvements and bug fixes to `TimerSet`
332
+ * Fixed deadlock of `Future` when the handler raises Exception
333
+ * Added shared specs for more classes
334
+ * New concurrency abstractions including:
335
+ - `Atom`
336
+ - `Maybe`
337
+ - `ImmutableStruct`
338
+ - `MutableStruct`
339
+ - `SettableStruct`
340
+ * Created an Edge gem for unstable abstractions including
341
+ - `Actor`
342
+ - `Agent`
343
+ - `Channel`
344
+ - `Exchanger`
345
+ - `LazyRegister`
346
+ - **new Future Framework** <http://ruby-concurrency.github.io/concurrent-ruby/Concurrent/Edge.html> - unified
347
+ implementation of Futures and Promises which combines Features of previous `Future`,
348
+ `Promise`, `IVar`, `Event`, `Probe`, `dataflow`, `Delay`, `TimerTask` into single framework. It uses extensively
349
+ new synchronization layer to make all the paths **lock-free** with exception of blocking threads on `#wait`.
350
+ It offers better performance and does not block threads when not required.
351
+ * Actor framework changes:
352
+ - fixed reset loop in Pool
353
+ - Pool can use any actor as a worker, abstract worker class is no longer needed.
354
+ - Actor events not have format `[:event_name, *payload]` instead of just the Symbol.
355
+ - Actor now uses new Future/Promise Framework instead of `IVar` for better interoperability
356
+ - Behaviour definition array was simplified to `[BehaviourClass1, [BehaviourClass2, *initialization_args]]`
357
+ - Linking behavior responds to :linked message by returning array of linked actors
358
+ - Supervised behavior is removed in favour of just Linking
359
+ - RestartingContext is supervised by default now, `supervise: true` is not required any more
360
+ - Events can be private and public, so far only difference is that Linking will
361
+ pass to linked actors only public messages. Adding private :restarting and
362
+ :resetting events which are send before the actor restarts or resets allowing
363
+ to add callbacks to cleanup current child actors.
364
+ - Print also object_id in Reference to_s
365
+ - Add AbstractContext#default_executor to be able to override executor class wide
366
+ - Add basic IO example
367
+ - Documentation somewhat improved
368
+ - All messages should have same priority. It's now possible to send `actor << job1 << job2 << :terminate!` and
369
+ be sure that both jobs are processed first.
370
+ * Refactored `Channel` to use newer synchronization objects
371
+ * Added `#reset` and `#cancel` methods to `TimerSet`
372
+ * Added `#cancel` method to `Future` and `ScheduledTask`
373
+ * Refactored `TimerSet` to use `ScheduledTask`
374
+ * Updated `Async` with a factory that initializes the object
375
+ * Deprecated `Concurrent.timer` and `Concurrent.timeout`
376
+ * Reduced max threads on pure-Ruby thread pools (abends around 14751 threads)
377
+ * Moved many private/internal classes/modules into "namespace" modules
378
+ * Removed brute-force killing of threads in tests
379
+ * Fixed a thread pool bug when the operating system cannot allocate more threads
380
+
381
+ ## Release v0.8.0 (25 January 2015)
382
+
383
+ * C extension for MRI have been extracted into the `concurrent-ruby-ext` companion gem.
384
+ Please see the README for more detail.
385
+ * Better variable isolation in `Promise` and `Future` via an `:args` option
386
+ * Continued to update intermittently failing tests
387
+
388
+ ## Release v0.7.2 (24 January 2015)
389
+
390
+ * New `Semaphore` class based on [java.util.concurrent.Semaphore](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Semaphore.html)
391
+ * New `Promise.all?` and `Promise.any?` class methods
392
+ * Renamed `:overflow_policy` on thread pools to `:fallback_policy`
393
+ * Thread pools still accept the `:overflow_policy` option but display a warning
394
+ * Thread pools now implement `fallback_policy` behavior when not running (rather than universally rejecting tasks)
395
+ * Fixed minor `set_deref_options` constructor bug in `Promise` class
396
+ * Fixed minor `require` bug in `ThreadLocalVar` class
397
+ * Fixed race condition bug in `TimerSet` class
398
+ * Fixed race condition bug in `TimerSet` class
399
+ * Fixed signal bug in `TimerSet#post` method
400
+ * Numerous non-functional updates to clear warning when running in debug mode
401
+ * Fixed more intermittently failing tests
402
+ * Tests now run on new Travis build environment
403
+ * Multiple documentation updates
404
+
405
+ ## Release v0.7.1 (4 December 2014)
406
+
407
+ Please see the [roadmap](https://github.com/ruby-concurrency/concurrent-ruby/issues/142) for more information on the next planned release.
408
+
409
+ * Added `flat_map` method to `Promise`
410
+ * Added `zip` method to `Promise`
411
+ * Fixed bug with logging in `Actor`
412
+ * Improvements to `Promise` tests
413
+ * Removed actor-experimental warning
414
+ * Added an `IndirectImmediateExecutor` class
415
+ * Allow disabling auto termination of global executors
416
+ * Fix thread leaking in `ThreadLocalVar` (uses `Ref` gem on non-JRuby systems)
417
+ * Fix thread leaking when pruning pure-Ruby thread pools
418
+ * Prevent `Actor` from using an `ImmediateExecutor` (causes deadlock)
419
+ * Added missing synchronizations to `TimerSet`
420
+ * Fixed bug with return value of `Concurrent::Actor::Utils::Pool#ask`
421
+ * Fixed timing bug in `TimerTask`
422
+ * Fixed bug when creating a `JavaThreadPoolExecutor` with minimum pool size of zero
423
+ * Removed confusing warning when not using native extenstions
424
+ * Improved documentation
425
+
426
+ ## Release v0.7.0 (13 August 2014)
427
+
428
+ * Merge the [atomic](https://github.com/ruby-concurrency/atomic) gem
429
+ - Pure Ruby `MutexAtomic` atomic reference class
430
+ - Platform native atomic reference classes `CAtomic`, `JavaAtomic`, and `RbxAtomic`
431
+ - Automated [build process](https://github.com/ruby-concurrency/rake-compiler-dev-box)
432
+ - Fat binary releases for [multiple platforms](https://rubygems.org/gems/concurrent-ruby/versions) including Windows (32/64), Linux (32/64), OS X (64-bit), Solaris (64-bit), and JRuby
433
+ * C native `CAtomicBoolean`
434
+ * C native `CAtomicFixnum`
435
+ * Refactored intermittently failing tests
436
+ * Added `dataflow!` and `dataflow_with!` methods to match `Future#value!` method
437
+ * Better handling of timeout in `Agent`
438
+ * Actor Improvements
439
+ - Fine-grained implementation using chain of behaviors. Each behavior is responsible for single aspect like: `Termination`, `Pausing`, `Linking`, `Supervising`, etc. Users can create custom Actors easily based on their needs.
440
+ - Supervision was added. `RestartingContext` will pause on error waiting on its supervisor to decide what to do next ( options are `:terminate!`, `:resume!`, `:reset!`, `:restart!`). Supervising behavior also supports strategies `:one_for_one` and `:one_for_all`.
441
+ - Linking was added to be able to monitor actor's events like: `:terminated`, `:paused`, `:restarted`, etc.
442
+ - Dead letter routing added. Rejected envelopes are collected in a configurable actor (default: `Concurrent::Actor.root.ask!(:dead_letter_routing)`)
443
+ - Old `Actor` class removed and replaced by new implementation previously called `Actress`. `Actress` was kept as an alias for `Actor` to keep compatibility.
444
+ - `Utils::Broadcast` actor which allows Publish–subscribe pattern.
445
+ * More executors for managing serialized operations
446
+ - `SerializedExecution` mixin module
447
+ - `SerializedExecutionDelegator` for serializing *any* executor
448
+ * Updated `Async` with serialized execution
449
+ * Updated `ImmediateExecutor` and `PerThreadExecutor` with full executor service lifecycle
450
+ * Added a `Delay` to root `Actress` initialization
451
+ * Minor bug fixes to thread pools
452
+ * Refactored many intermittently failing specs
453
+ * Removed Java interop warning `executor.rb:148 warning: ambiguous Java methods found, using submit(java.lang.Runnable)`
454
+ * Fixed minor bug in `RubyCachedThreadPool` overflow policy
455
+ * Updated tests to use [RSpec 3.0](http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3)
456
+ * Removed deprecated `Actor` class
457
+ * Better support for Rubinius
458
+
459
+ ## Release v0.6.1 (14 June 2014)
460
+
461
+ * Many improvements to `Concurrent::Actress`
462
+ * Bug fixes to `Concurrent::RubyThreadPoolExecutor`
463
+ * Fixed several brittle tests
464
+ * Moved documentation to http://ruby-concurrency.github.io/concurrent-ruby/frames.html
465
+
466
+ ## Release v0.6.0 (25 May 2014)
467
+
468
+ * Added `Concurrent::Observable` to encapsulate our thread safe observer sets
469
+ * Improvements to new `Channel`
470
+ * Major improvements to `CachedThreadPool` and `FixedThreadPool`
471
+ * Added `SingleThreadExecutor`
472
+ * Added `Current::timer` function
473
+ * Added `TimerSet` executor
474
+ * Added `AtomicBoolean`
475
+ * `ScheduledTask` refactoring
476
+ * Pure Ruby and JRuby-optimized `PriorityQueue` classes
477
+ * Updated `Agent` behavior to more closely match Clojure
478
+ * Observer sets support block callbacks to the `add_observer` method
479
+ * New algorithm for thread creation in `RubyThreadPoolExecutor`
480
+ * Minor API updates to `Event`
481
+ * Rewritten `TimerTask` now an `Executor` instead of a `Runnable`
482
+ * Fixed many brittle specs
483
+ * Renamed `FixedThreadPool` and `CachedThreadPool` to `RubyFixedThreadPool` and `RubyCachedThreadPool`
484
+ * Created JRuby optimized `JavaFixedThreadPool` and `JavaCachedThreadPool`
485
+ * Consolidated fixed thread pool tests into `spec/concurrent/fixed_thread_pool_shared.rb` and `spec/concurrent/cached_thread_pool_shared.rb`
486
+ * `FixedThreadPool` now subclasses `RubyFixedThreadPool` or `JavaFixedThreadPool` as appropriate
487
+ * `CachedThreadPool` now subclasses `RubyCachedThreadPool` or `JavaCachedThreadPool` as appropriate
488
+ * New `Delay` class
489
+ * `Concurrent::processor_count` helper function
490
+ * New `Async` module
491
+ * Renamed `NullThreadPool` to `PerThreadExecutor`
492
+ * Deprecated `Channel` (we are planning a new implementation based on [Go](http://golangtutorials.blogspot.com/2011/06/channels-in-go.html))
493
+ * Added gem-level [configuration](http://robots.thoughtbot.com/mygem-configure-block)
494
+ * Deprecated `$GLOBAL_THREAD_POOL` in lieu of gem-level configuration
495
+ * Removed support for Ruby [1.9.2](https://www.ruby-lang.org/en/news/2013/12/17/maintenance-of-1-8-7-and-1-9-2/)
496
+ * New `RubyThreadPoolExecutor` and `JavaThreadPoolExecutor` classes
497
+ * All thread pools now extend the appropriate thread pool executor classes
498
+ * All thread pools now support `:overflow_policy` (based on Java's [reject policies](http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ThreadPoolExecutor.html))
499
+ * Deprecated `UsesGlobalThreadPool` in lieu of explicit `:executor` option (dependency injection) on `Future`, `Promise`, and `Agent`
500
+ * Added `Concurrent::dataflow_with(executor, *inputs)` method to support executor dependency injection for dataflow
501
+ * Software transactional memory with `TVar` and `Concurrent::atomically`
502
+ * First implementation of [new, high-performance](https://github.com/ruby-concurrency/concurrent-ruby/pull/49) `Channel`
503
+ * `Actor` is deprecated in favor of new experimental actor implementation [#73](https://github.com/ruby-concurrency/concurrent-ruby/pull/73). To avoid namespace collision it is living in `Actress` namespace until `Actor` is removed in next release.
504
+
505
+ ## Release v0.5.0
506
+
507
+ This is the most significant release of this gem since its inception. This release includes many improvements and optimizations. It also includes several bug fixes. The major areas of focus for this release were:
508
+
509
+ * Stability improvements on Ruby versions with thread-level parallelism ([JRuby](http://jruby.org/) and [Rubinius](http://rubini.us/))
510
+ * Creation of new low-level concurrency abstractions
511
+ * Internal refactoring to use the new low-level abstractions
512
+
513
+ Most of these updates had no effect on the gem API. There are a few notable exceptions which were unavoidable. Please read the [release notes](API-Updates-in-v0.5.0) for more information.
514
+
515
+ Specific changes include:
516
+
517
+ * New class `IVar`
518
+ * New class `MVar`
519
+ * New class `ThreadLocalVar`
520
+ * New class `AtomicFixnum`
521
+ * New class method `dataflow`
522
+ * New class `Condition`
523
+ * New class `CountDownLatch`
524
+ * New class `DependencyCounter`
525
+ * New class `SafeTaskExecutor`
526
+ * New class `CopyOnNotifyObserverSet`
527
+ * New class `CopyOnWriteObserverSet`
528
+ * `Future` updated with `execute` API
529
+ * `ScheduledTask` updated with `execute` API
530
+ * New `Promise` API
531
+ * `Future` now extends `IVar`
532
+ * `Postable#post?` now returns an `IVar`
533
+ * Thread safety fixes to `Dereferenceable`
534
+ * Thread safety fixes to `Obligation`
535
+ * Thread safety fixes to `Supervisor`
536
+ * Thread safety fixes to `Event`
537
+ * Various other thread safety (race condition) fixes
538
+ * Refactored brittle tests
539
+ * Implemented pending tests
540
+ * Added JRuby and Rubinius as Travis CI build targets
541
+ * Added [CodeClimate](https://codeclimate.com/) code review
542
+ * Improved YARD documentation
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ Copyright (c) Jerry D'Antonio -- released under the MIT license.
2
+
3
+ http://www.opensource.org/licenses/mit-license.php
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.