about summary refs log tree commit diff
path: root/src/libstd/sys/hermit/thread_local.rs
blob: f8be9863ed56f69713e88c98fdfd8b4a6037f2e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pub type Key = usize;

#[inline]
pub unsafe fn create(_dtor: Option<unsafe extern "C" fn(*mut u8)>) -> Key {
    panic!("should not be used on the wasm target");
}

#[inline]
pub unsafe fn set(_key: Key, _value: *mut u8) {
    panic!("should not be used on the wasm target");
}

#[inline]
pub unsafe fn get(_key: Key) -> *mut u8 {
    panic!("should not be used on the wasm target");
}

#[inline]
pub unsafe fn destroy(_key: Key) {
    panic!("should not be used on the wasm target");
}

#[inline]
pub fn requires_synchronized_create() -> bool {
    panic!("should not be used on the wasm target");
}