mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
let's see what happens if i just...
This commit is contained in:
@@ -22,13 +22,16 @@ use std::time::Duration;
|
|||||||
|
|
||||||
use super::pool::Task;
|
use super::pool::Task;
|
||||||
|
|
||||||
/// Number of shards. Must be a power of 2.
|
// TODO(eliza): make this configurable and swap between 1/16 shards based on
|
||||||
/// Under loom, use a single shard to keep the state space tractable —
|
// whether the runtime builder enables the sharded queue...
|
||||||
/// the concurrency properties we need to verify (condvar signaling,
|
//
|
||||||
/// shutdown ordering) are independent of shard count.
|
// /// Number of shards. Must be a power of 2.
|
||||||
#[cfg(not(loom))]
|
// /// Under loom, use a single shard to keep the state space tractable —
|
||||||
const NUM_SHARDS: usize = 16;
|
// /// the concurrency properties we need to verify (condvar signaling,
|
||||||
#[cfg(loom)]
|
// /// shutdown ordering) are independent of shard count.
|
||||||
|
// #[cfg(not(loom))]
|
||||||
|
// const NUM_SHARDS: usize = 16;
|
||||||
|
// #[cfg(loom)]
|
||||||
const NUM_SHARDS: usize = 1;
|
const NUM_SHARDS: usize = 1;
|
||||||
|
|
||||||
/// A single shard containing a queue protected by its own mutex.
|
/// A single shard containing a queue protected by its own mutex.
|
||||||
|
|||||||
Reference in New Issue
Block a user