aboutsummaryrefslogtreecommitdiff
path: root/ctr-std/src/sys_common/thread_local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ctr-std/src/sys_common/thread_local.rs')
-rw-r--r--ctr-std/src/sys_common/thread_local.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctr-std/src/sys_common/thread_local.rs b/ctr-std/src/sys_common/thread_local.rs
index a4aa3d9..d0d6224 100644
--- a/ctr-std/src/sys_common/thread_local.rs
+++ b/ctr-std/src/sys_common/thread_local.rs
@@ -169,7 +169,7 @@ impl StaticKey {
self.key.store(key, Ordering::SeqCst);
}
INIT_LOCK.unlock();
- assert!(key != 0);
+ rtassert!(key != 0);
return key
}
@@ -190,7 +190,7 @@ impl StaticKey {
imp::destroy(key1);
key2
};
- assert!(key != 0);
+ rtassert!(key != 0);
match self.key.compare_and_swap(0, key as usize, Ordering::SeqCst) {
// The CAS succeeded, so we've created the actual key
0 => key as usize,