ac7b9ddc54
Once a native mutex has been used once, it is never allowed to be moved again. This is because some pthreads implementations take pointers inside the mutex itself. This commit adds stern wording around the methods on native mutexes, and fixes one use case in the codebase. The Mutex type in libsync was susceptible to movement, so the inner static mutex is now boxed to ensure that the address of the native mutex is constant. |
||
---|---|---|
.. | ||
args.rs | ||
at_exit_imp.rs | ||
bookkeeping.rs | ||
c_str.rs | ||
exclusive.rs | ||
lib.rs | ||
libunwind.rs | ||
local_data.rs | ||
local_heap.rs | ||
local_ptr.rs | ||
local.rs | ||
macros.rs | ||
mutex.rs | ||
rtio.rs | ||
stack.rs | ||
task.rs | ||
thread_local_storage.rs | ||
thread.rs | ||
unwind.rs | ||
util.rs |