]> git.proxmox.com Git - rustc.git/blob - src/libstd/sys/wasm/thread_local.rs
New upstream version 1.46.0+dfsg1
[rustc.git] / src / libstd / sys / wasm / thread_local.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 wasm target");
6 }
7
8 #[inline]
9 pub unsafe fn set(_key: Key, _value: *mut u8) {
10 panic!("should not be used on the wasm target");
11 }
12
13 #[inline]
14 pub unsafe fn get(_key: Key) -> *mut u8 {
15 panic!("should not be used on the wasm target");
16 }
17
18 #[inline]
19 pub unsafe fn destroy(_key: Key) {
20 panic!("should not be used on the wasm target");
21 }
22
23 #[inline]
24 pub fn requires_synchronized_create() -> bool {
25 panic!("should not be used on the wasm target");
26 }