Skip to content

Commit

Permalink
Use const thread_local
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 7, 2024
1 parent 1c63593 commit 97da7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub fn block_on<T>(future: impl Future<Output = T>) -> T {
static CACHE: RefCell<(Parker, Waker, Arc<AtomicBool>)> = RefCell::new(parker_and_waker());

// Indicates that the current thread is polling I/O, but not necessarily blocked on it.
static IO_POLLING: Cell<bool> = Cell::new(false);
static IO_POLLING: Cell<bool> = const { Cell::new(false) };
}

struct BlockOnWaker {
Expand Down

0 comments on commit 97da7a1

Please sign in to comment.