#threadpool #spmc #channel

burst-pool

A SPMC channel optimised for bursts of activity

6 releases (3 breaking)

Uses old Rust 2015

0.5.1 Nov 20, 2017
0.5.0 Nov 17, 2017
0.4.0 Nov 2, 2017
0.3.1 May 16, 2017
0.2.2 May 4, 2017

#5 in #spmc

MIT/Apache

16KB
127 lines

A thread pool optimised for bursts of activity.

Designed for the following use-case: A single thread produces work which must then be performed by a pool of worker threads. The work is produced infrequently, but in bursts. Under normal operation, therefore, the threads in the pool sleep until some event requires many of them to be suddenly be woken at once. Those threads perform some work before going back to sleep again.

See the documentation for details.

Dependencies

~1.5MB
~25K SLoC