Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/carllerche/syncbox
/ types & classes
Types & classes
34 in github.com/carllerche/syncbox
⨍
Functions
111
◇
Types & classes
34
↓ 8 callers
Class
Delay
src/delay_queue.rs:25
↓ 1 callers
Interface
Delayed
A value that should not be used until the delay has expired.
src/delay_queue.rs:9
Class
ArrayQueue
A bounded, array-based queue, with compare-and-swap based operations.
src/array_queue.rs:60
Interface
Atomic
An atomic box
src/atomic.rs:22
Class
AtomicI64
src/atomic.rs:185
Class
AtomicState
src/thread_pool.rs:657
Class
AtomicU64
src/atomic.rs:129
Class
AtomicVal
TODO: Move A -> ToAtomicRepr associated type (blocked rust-lang/rust#20772)
src/atomic.rs:55
Interface
BoxedTask
src/thread_pool.rs:141
Class
Core
src/thread_pool.rs:548
Class
DelayQueue
An unbounded blocking queue of delayed values. When a value is pushed onto the queue, a delay is included. The value will only be able to be popped of
src/delay_queue.rs:58
Class
Entry
src/delay_queue.rs:213
Class
Inner
src/delay_queue.rs:62
Enum
Lifecycle
src/thread_pool.rs:764
Class
LinkedQueue
A queue in which values are contained by a linked list. The current implementation is based on a mutex and two condition variables. It is also mostly
src/linked_queue.rs:12
Enum
Need
src/delay_queue.rs:159
Class
Node
src/array_queue.rs:37
Class
Node
src/linked_queue.rs:351
Class
NodePtr
src/linked_queue.rs:372
Interface
Queue
An interface for queues of elements of type `T`.
src/queue.rs:6
Class
QueueInner
A variant of the "two lock queue" algorithm. The putLock gates entry to put (and offer), and has an associated condition for waiting puts. Similarly
src/linked_queue.rs:144
Interface
Run
src/run.rs:2
Enum
Scheduled
src/thread_pool.rs:120
Class
ScheduledThreadPool
A thread pool that can schedule tasks to run after a given delay, or to execute periodically. Delayed tasks do not run before their associated delays,
src/thread_pool.rs:83
Class
State
src/thread_pool.rs:716
Class
State
src/array_queue.rs:45
Interface
SyncQueue
An interface for synchronous queues of elements of type `T`. This extends `Queue` with blocking analogs of `poll` and `offer`. Both `take` and `put`
src/queue.rs:28
Interface
Task
A value that can run a unit of work.
src/run.rs:8
Interface
TaskBox
src/run.rs:28
Class
ThreadPool
src/thread_pool.rs:15
Class
ThreadPoolInner
## Notes It's important that a worker increments the count before pulling from the queue and never touches the queue after decrementing the worker co
src/thread_pool.rs:161
Interface
ToAtomicRepr
A value that can be stored in an atomic box
src/atomic.rs:42
Interface
WorkQueue
A queue that can be used to back a thread pool
src/thread_pool.rs:9
Class
Worker
src/thread_pool.rs:418