Jerry D'Antonio
23b6f65fd1
Require only necessary concurrent-ruby classes.
2015-11-04 21:12:28 -05:00
thedarkone
5d6770754e
Small tweaks to mainly lock-ordering tests.
...
* only test the upgrade path,
* add test to verify non upgrades can’t preempt,
* add reentrancy assertion.
2015-07-22 22:59:01 +02:00
Matthew Draper
e9020ac431
Handle thread death during lock acquisition
...
Specifically, clean up if the thread is killed while it's blocked
awaiting the lock... if we get killed on some other arbitrary line, the
result remains quite undefined.
2015-07-21 12:03:38 +09:30
Matthew Draper
4c54b2a9a0
Adjust expectations around purpose/compatibility options
2015-07-21 12:03:38 +09:30
Matthew Draper
ef4d334272
Add some meta-assertions for the custom assertions
...
I accidentally discovered `assert_threads_not_stuck` couldn't fail, so
the simplest solution was to prove they're all now working in both
directions.
2015-07-21 12:00:52 +09:30
Matthew Draper
649d8173c3
Order of execution is only guaranteed if upgrading
...
If the thread isn't yet holding any form of lock, it has no claim over
what may / may not run while it's blocked.
2015-07-21 08:50:50 +09:30
thedarkone
9c4da24aca
Tests for AS::Concurrency::ShareLock.
2015-07-20 19:01:11 +02:00