]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys/solid/thread_local_key.rs
Auto merge of #102783 - RalfJung:tls, r=thomcc
[rust.git] / library / std / src / sys / solid / thread_local_key.rs
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 }