Skip to content

Commit

Permalink
High-level API: Make executors unbounded in order to prevent dead locks
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Jul 6, 2023
1 parent 5d70fea commit 53b384e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main/high/src/local_run_loop_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ struct Task {
task_sender: Sender<Arc<Task>>,
}

pub fn new_spawner_and_executor(capacity: usize, bulk_size: usize) -> (Spawner, RunLoopExecutor) {
let (task_sender, ready_queue) = crossbeam_channel::bounded(capacity);
pub fn new_spawner_and_executor(bulk_size: usize) -> (Spawner, RunLoopExecutor) {
let (task_sender, ready_queue) = crossbeam_channel::unbounded();
(
Spawner { task_sender },
RunLoopExecutor {
Expand Down
4 changes: 2 additions & 2 deletions main/high/src/run_loop_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ struct Task {
task_sender: Sender<Arc<Task>>,
}

pub fn new_spawner_and_executor(capacity: usize, bulk_size: usize) -> (Spawner, RunLoopExecutor) {
let (task_sender, ready_queue) = crossbeam_channel::bounded(capacity);
pub fn new_spawner_and_executor(bulk_size: usize) -> (Spawner, RunLoopExecutor) {
let (task_sender, ready_queue) = crossbeam_channel::unbounded();
(
Spawner { task_sender },
RunLoopExecutor {
Expand Down

0 comments on commit 53b384e

Please sign in to comment.