We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aea3fb commit 0ebde59Copy full SHA for 0ebde59
runtime/src/exec.rs
@@ -89,7 +89,7 @@ pub trait TaskSystem {
89
// Thread local storage to store the thread's id, otherwise we don't know
90
// who we are in sync. The thread id starts at an invalid value but will be set
91
// upon thread launch
92
-thread_local!(static THREAD_ID: RefCell<usize> = RefCell::new(0));
+thread_local!(static THREAD_ID: RefCell<usize> = const { RefCell::new(0) });
93
94
/// A multithreaded execution environment for the tasks launched in ISPC
95
pub struct Parallel {
0 commit comments