Add some thread pool docs (#421)

This commit is contained in:
Carl Lerche
2018-06-15 15:20:25 -07:00
committed by GitHub
parent 71c8f561e3
commit 3fac7ce68c
4 changed files with 147 additions and 4 deletions
+3
View File
@@ -16,6 +16,9 @@ use deque;
// operations are thread-safe vs. which ones require ownership of the worker.
pub(crate) struct WorkerEntry {
// Worker state. This is mutated when notifying the worker.
//
// The `usize` value is deserialized to a `worker::State` instance. See
// comments on that type.
pub state: AtomicUsize,
// Next entry in the parked Trieber stack