xref: /drstd/src/std/sys/solid/thread_local_key.rs (revision 86982c5e9b2eaa583327251616ee822c36288824)
1 pub type Key = usize;
2 
3 #[inline]
4 pub unsafe fn create(_dtor: Option<unsafe extern "C" fn(*mut u8)>) -> Key {
5     panic!("should not be used on the solid target");
6 }
7 
8 #[inline]
9 pub unsafe fn set(_key: Key, _value: *mut u8) {
10     panic!("should not be used on the solid target");
11 }
12 
13 #[inline]
14 pub unsafe fn get(_key: Key) -> *mut u8 {
15     panic!("should not be used on the solid target");
16 }
17 
18 #[inline]
19 pub unsafe fn destroy(_key: Key) {
20     panic!("should not be used on the solid target");
21 }
22