Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gbin committed May 22, 2024
1 parent d73d2a4 commit df5dded
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions copper/src/common.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
extern crate alloc;

use std::iter::{Chain, Rev};
use std::mem::replace;
use std::slice::{Iter as SliceIter, IterMut as SliceIterMut};

const MAX_TASKS: usize = 255;
const MAX_CONCURRENT_TASKS: usize = 8;
const MAX_TASKS: usize = 512;

#[derive(Debug)]
struct CopperLiskMask {
Expand All @@ -19,7 +17,7 @@ enum CopperListState {
BeingSerialized,
}

/// A circular buffer-like queue.
/// This structure maintains the entire memory needed by Copper for one process for the inter task communication.
#[derive(Debug)]
pub struct CopperListsManager<T: Sized + PartialEq, const N: usize> {
copper_list_states: [CopperListState; N],
Expand Down

0 comments on commit df5dded

Please sign in to comment.