Skip to content

Commit

Permalink
TODO about making a trait generalizing MPool
Browse files Browse the repository at this point in the history
  • Loading branch information
efenniht authored and jeehoonkang committed Aug 20, 2019
1 parent cb649a7 commit c8cc29b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hfo2/src/mpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ impl Pool {
}
}

/// Memory pool equipped with spinlock and fallback pool.
/// TODO(HfO2): Make a trait, which generalizes Pool (linked list) and a pair of
/// (pool, fallback) (#35.)
#[repr(C)]
pub struct MPool {
pool: SpinLock<Pool>,
Expand Down

0 comments on commit c8cc29b

Please sign in to comment.