Stjepan Glavina
0f44adf5f6
reactor: use LocalKey::try_with in sharded RW lock ( #628 )
...
@jonhoo reported a panic in the call to `LocalKey::with`, which occurs
when the reactor is dropped in the middle of TLS teardown. This PR
changes the call to `LocalKey::try_with` and handles the case when the
thread-local value has already been destroyed.
2018-09-11 16:48:06 -04:00
Stjepan Glavina
8052a9b348
guide: fix a few typos ( #612 )
2018-09-03 10:18:53 -07:00
Stjepan Glavina
989262fe6e
Enable sanitizer tests for tokio-threadpool ( #537 )
...
Closes #536 .
2018-08-10 19:13:51 +02:00
Stjepan Glavina
96b556fbff
Steal multiple tasks from another worker at a time ( #534 )
...
* Steal multiple tasks from another worker at a time
* Better spinning and failing pop
* Update crossbeam-deque and simplify spinning
2018-08-09 12:14:13 -07:00
Stjepan Glavina
fd36054ae4
Use a scalable RW lock in tokio-reactor ( #517 )
2018-08-09 11:23:45 -07:00
Stjepan Glavina
6b1e4ab0a3
Implement Error for a few error types ( #511 )
2018-08-07 19:45:58 -07:00
Stjepan Glavina
9352249c3e
Terminate backup threads when idle ( #489 )
2018-07-30 20:48:53 -07:00
Stjepan Glavina
e5b2681513
Fix a race in thread wakeup ( #507 )
2018-07-30 20:46:46 -07:00
Stjepan Glavina
629c9f0698
Small fixes ( #508 )
...
* Make Shutdown public
* Remove unused import
* Fix documentation mistake
* Fix typo
2018-07-30 20:46:04 -07:00
Stjepan Glavina
c17ecb53e7
Pad fields to cacheline size to avoid false sharing ( #475 )
2018-07-16 14:22:48 -07:00
Stjepan Glavina
990186ec9d
Optimize spinning in Worker::run ( #470 )
2018-07-11 12:30:26 -07:00
Stjepan Glavina
19da6ff59a
New version of crossbeam-deque ( #468 )
2018-07-11 12:24:10 -07:00
Stjepan Glavina
dc7202cfa9
Replace XorShiftRng with a custom RNG ( #466 )
2018-07-06 13:33:52 -07:00
Stjepan Glavina
b019532bc2
Implement status() for DefaultExecutor ( #463 )
2018-07-05 10:19:49 -07:00
Stjepan Glavina
7fb579c667
Fix a race in thread wakeup ( #459 )
2018-07-03 16:28:50 -07:00
Stjepan Glavina
dbefa67058
Make WorkerId public ( #460 )
2018-07-02 13:34:08 -07:00