about summary refs log tree commit diff
path: root/src/libstd/sys/wasm/condvar_atomics.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-94/+0
2020-06-10Migrate to numeric associated constsLzu Tao-2/+2
2019-12-22Format the worldMark Rousskov-1/+1
2019-11-24Use as_mut_ptr instead of castsPaul Dicker-1/+1
2019-02-28libstd => 2018Taiki Endo-6/+6
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-17Update the stdsimd submoduleAlex Crichton-5/+5
This brings in a few updates: * Update wasm intrinsic naming for atomics * Update and reimplement most simd128 wasm intrinsics * Other misc improvements here and there, including a small start to AVX-512 intrinsics
2018-09-24std: Start implementing wasm32 atomicsAlex Crichton-0/+104
This commit is an initial start at implementing the standard library for wasm32-unknown-unknown with the experimental `atomics` feature enabled. None of these changes will be visible to users of the wasm32-unknown-unknown target because they all require recompiling the standard library. The hope with this is that we can get this support into the standard library and start iterating on it in-tree to enable experimentation. Currently there's a few components in this PR: * Atomic fences are disabled on wasm as there's no corresponding atomic op and it's not clear yet what the convention should be, but this will change in the future! * Implementations of `Mutex`, `Condvar`, and `RwLock` were all added based on the atomic intrinsics that wasm has. * The `ReentrantMutex` and thread-local-storage implementations panic currently as there's no great way to get a handle on the current thread's "id" yet. Right now the wasm32 target with atomics is unfortunately pretty unusable, requiring a lot of manual things here and there to actually get it operational. This will likely continue to evolve as the story for atomics and wasm unfolds, but we also need more LLVM support for some operations like custom `global` directives for this to work best.