]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys/hermit/thread_local_key.rs
Rollup merge of #84320 - jsha:details-implementors, r=Manishearth,Nemo157,GuillaumeGomez
[rust.git] / library / std / src / sys / hermit / 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 hermit target");
6 }
7
8 #[inline]
9 pub unsafe fn set(_key: Key, _value: *mut u8) {
10     panic!("should not be used on the hermit target");
11 }
12
13 #[inline]
14 pub unsafe fn get(_key: Key) -> *mut u8 {
15     panic!("should not be used on the hermit target");
16 }
17
18 #[inline]
19 pub unsafe fn destroy(_key: Key) {
20     panic!("should not be used on the hermit target");
21 }
22
23 #[inline]
24 pub fn requires_synchronized_create() -> bool {
25     panic!("should not be used on the hermit target");
26 }