about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-12 11:40:13 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-13 13:53:34 -0700
commitac7b9ddc545b7f62f00bf8f4d490d31ff4b90d1d (patch)
tree88392ca6e57d1ec5481f9cc9d002b7b153bd8148 /src/rustllvm/RustWrapper.cpp
parentb612ae9edea26cb8704363c47a66d583b644ad09 (diff)
downloadrust-ac7b9ddc545b7f62f00bf8f4d490d31ff4b90d1d.tar.gz
rust-ac7b9ddc545b7f62f00bf8f4d490d31ff4b90d1d.zip
Audit usage of NativeMutex
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions