Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/carllerche/syncbox
/ functions
Functions
111 in github.com/carllerche/syncbox
⨍
Functions
111
◇
Types & classes
34
↓ 51 callers
Method
unwrap
Moves the value out of the `Delay<T>`.
src/delay_queue.rs:29
↓ 16 callers
Method
clone
(&self)
src/thread_pool.rs:74
↓ 10 callers
Method
offer
Adds the element `e` to the queue if possible. # Errors A call to `offer` will fail if the queue is full; the provided element `e` is returned in th
src/linked_queue.rs:45
↓ 9 callers
Method
load
(&self, order: Ordering)
src/thread_pool.rs:670
↓ 9 callers
Function
sleep_ms
(ms: usize)
test/test.rs:18
↓ 9 callers
Function
spawn
(f: F)
test/test.rs:13
↓ 9 callers
Method
take
Takes from the queue, blocking until there is an element available. TODO(soon): decide on documenting panic?
src/linked_queue.rs:77
↓ 8 callers
Method
len
Returns the number of elements in the queue.
src/linked_queue.rs:30
↓ 8 callers
Method
load
Atomically loads the value from the box with the given ordering
src/atomic.rs:78
↓ 8 callers
Method
put
Adds the element `e` to the queue, blocking until it can be added. TODO(soon): decide on documenting panic?
src/linked_queue.rs:61
↓ 7 callers
Method
lifecycle
(&self)
src/thread_pool.rs:729
↓ 7 callers
Method
worker_count
(&self)
src/thread_pool.rs:738
↓ 6 callers
Method
run
(self)
src/run.rs:14
↓ 6 callers
Method
schedule_ms
(&self, delay: u32, task: T)
src/thread_pool.rs:100
↓ 5 callers
Method
add_worker
(&self, task: Option<T>, core: bool)
src/thread_pool.rs:345
↓ 4 callers
Method
as_usize
(&self)
src/thread_pool.rs:754
↓ 4 callers
Method
compare_and_swap
(&self, expect: State, val: State, order: Ordering)
src/thread_pool.rs:675
↓ 4 callers
Method
push
Adds the element `e` to the queue if possible. # Errors A call to `push` will fail if the queue is full; the provided element `value` is returned in
src/array_queue.rs:78
↓ 4 callers
Method
with_lifecycle
(&self, lifecycle: Lifecycle)
src/thread_pool.rs:733
↓ 3 callers
Method
clone
(&self)
src/array_queue.rs:89
↓ 3 callers
Method
decrement_worker_count
(&self, panicking: bool)
src/thread_pool.rs:521
↓ 3 callers
Method
finish_pop
(&self, mut queue: MutexGuard<'a, BinaryHeap<Entry<T>>>)
src/delay_queue.rs:105
↓ 3 callers
Function
ms
(ms: u32)
test/test_scheduled_pool.rs:76
↓ 3 callers
Method
offer_ms
Adds the element `e` to the queue, blocking for up to `ms` milliseconds. # Errors A call to `offer_ms` will fail if the element cannot be added with
src/linked_queue.rs:55
↓ 3 callers
Method
poll_ms
Takes from the queue, blocking for up to `ms` milliseconds.
src/linked_queue.rs:71
↓ 3 callers
Method
run
(&self, task: T)
src/thread_pool.rs:68
↓ 2 callers
Method
compare_and_swap
Swaps the value in the box if and only if the existing value is equal to `old`.
src/atomic.rs:96
↓ 2 callers
Method
fetch_add
(&self, val: u64, order: Ordering)
src/atomic.rs:160
↓ 2 callers
Method
fetch_sub
(&self, val: u64, order: Ordering)
src/atomic.rs:165
↓ 2 callers
Method
finalize_threadpool
(&self)
src/thread_pool.rs:645
↓ 2 callers
Method
is_running
(&self)
src/thread_pool.rs:742
↓ 2 callers
Method
is_terminated
(&self)
src/thread_pool.rs:746
↓ 2 callers
Method
pop
Takes from the queue if there is an element available.
src/array_queue.rs:83
↓ 2 callers
Method
shutdown
(&self)
src/thread_pool.rs:50
↓ 2 callers
Method
store
Atomically stores the value from the box with the given ordering
src/atomic.rs:84
↓ 1 callers
Method
as_u32
(&self)
src/thread_pool.rs:750
↓ 1 callers
Function
check
(_: &R)
test/test_thread_pool.rs:71
↓ 1 callers
Method
cmp
(&self, other: &Entry<T>)
src/delay_queue.rs:234
↓ 1 callers
Method
compare_and_dec_worker_count
(&self, expect: State, order: Ordering)
src/thread_pool.rs:685
↓ 1 callers
Method
compare_and_inc_worker_count
(&self, expect: State, order: Ordering)
src/thread_pool.rs:680
↓ 1 callers
Method
delay
(&self)
src/delay_queue.rs:15
↓ 1 callers
Function
dequeue
(mut head: &mut MutexGuard<NodePtr<T>>)
src/linked_queue.rs:336
↓ 1 callers
Function
enqueue
(node: Node<T>, mut last: &mut MutexGuard<NodePtr<T>>)
src/linked_queue.rs:344
↓ 1 callers
Method
fetch_dec_worker_count
(&self, order: Ordering)
src/thread_pool.rs:694
↓ 1 callers
Method
free
(self)
src/linked_queue.rs:385
↓ 1 callers
Method
get_task
Gets the next task, blocking if necessary. Returns None if the worker should shutdown
src/thread_pool.rs:455
↓ 1 callers
Method
is_empty
Returns `true` if the queue contains no elements.
src/linked_queue.rs:35
↓ 1 callers
Method
notify_not_empty
(&self)
src/linked_queue.rs:321
↓ 1 callers
Method
notify_not_full
Signals a waiting put. Called only from take / poll
src/linked_queue.rs:314
↓ 1 callers
Method
offer
(&self, e: T)
src/delay_queue.rs:132
↓ 1 callers
Method
poll
Takes from the queue if there is an element available.
src/linked_queue.rs:66
↓ 1 callers
Method
run_boxed
(self: Box<T>)
src/thread_pool.rs:146
↓ 1 callers
Method
run_boxes
(self: Box<Self>)
src/run.rs:33
↓ 1 callers
Method
transition_to_terminated
(&self, order: Ordering)
src/thread_pool.rs:699
Method
await_termination
(&self)
src/thread_pool.rs:62
Method
clone
(&self)
src/delay_queue.rs:208
Method
clone
(&self)
src/linked_queue.rs:107
Method
delay
(&self)
src/thread_pool.rs:125
Method
deref
(&self)
src/delay_queue.rs:43
Method
deref
(&self)
src/linked_queue.rs:394
Method
deref_mut
(&mut self)
src/delay_queue.rs:49
Method
deref_mut
(&mut self)
src/linked_queue.rs:400
Method
drop
(&mut self)
src/thread_pool.rs:409
Method
drop
(&mut self)
src/linked_queue.rs:330
Method
empty
()
src/linked_queue.rs:364
Method
eq
(&self, other: &Entry<T>)
src/delay_queue.rs:241
Method
fetch_and
(&self, val: u64, order: Ordering)
src/atomic.rs:170
Method
fetch_or
(&self, val: u64, order: Ordering)
src/atomic.rs:175
Method
fetch_xor
(&self, val: u64, order: Ordering)
src/atomic.rs:180
Method
fixed_size
(size: u32)
src/thread_pool.rs:20
Method
from_u32
(val: u32)
src/thread_pool.rs:773
Method
is_empty
(&self)
src/delay_queue.rs:127
Method
is_shutdown
(&self)
src/thread_pool.rs:58
Method
new
(core_pool_size: u32, maximum_pool_size: u32, work_queue: Q)
src/thread_pool.rs:30
Method
new
Constructs a new `DelayQueue`.
src/delay_queue.rs:69
Method
new
Returns a new atomic box
src/atomic.rs:62
Method
new
Constructs a new, empty `LinkedQueue<T>` with capacity `usize::MAX`.
src/linked_queue.rs:18
Method
null
()
src/linked_queue.rs:381
Method
of
(lifecycle: Lifecycle)
src/thread_pool.rs:725
Method
partial_cmp
(&self, other: &Entry<T>)
src/delay_queue.rs:228
Method
poll
(&self)
src/delay_queue.rs:115
Method
poll_timeout
Takes from the queue, blocking for up to `timeout`.
src/delay_queue.rs:79
Method
prestart_all_core_threads
(&self)
src/thread_pool.rs:46
Method
prestart_core_thread
(&self)
src/thread_pool.rs:42
Method
put
(&self, e: T)
src/delay_queue.rs:202
Method
shutdown_now
(&self)
src/thread_pool.rs:54
Method
single_thread
()
src/thread_pool.rs:24
Method
swap
Atomically swaps the value in the box with the given ordering
src/atomic.rs:89
Method
take
(&self)
src/delay_queue.rs:157
Function
test
()
src/array_queue.rs:183
Function
test_multi_consumer_multi_producer
()
test/test_linked_queue.rs:98
Function
test_multi_producer_at_capacity
()
test/test_linked_queue.rs:192
Function
test_one_thread_basic
()
test/test_thread_pool.rs:8
Function
test_one_thread_one_task
()
test/test_scheduled_pool.rs:7
Function
test_one_thread_two_tasks
()
test/test_scheduled_pool.rs:21
Function
test_ordering
()
test/test_delay_queue.rs:5
Function
test_poll
()
test/test_delay_queue.rs:18
Function
test_poll_timeout
()
test/test_delay_queue.rs:29
Function
test_queue_with_capacity
()
test/test_linked_queue.rs:174
Function
test_single_consumer_multi_producer
()
test/test_linked_queue.rs:73
next →
1–100 of 111, ranked by callers