about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-03-22 00:50:19 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-03-23 09:45:20 -0700
commitae049e82f876e335b835edb674228090d84f811e (patch)
tree5af86032aed2022aa2402e1e50e52f832e08cbfb /src/rustllvm/ExecutionEngineWrapper.cpp
parent53e451f4106c0eb6614b4c534744e81c6100cbbd (diff)
downloadrust-ae049e82f876e335b835edb674228090d84f811e.tar.gz
rust-ae049e82f876e335b835edb674228090d84f811e.zip
sync: Rewrite the base primitives
This commit rewrites the core primitives of the sync library: Mutex, RWLock, and
Semaphore. These primitives now have updated, more modernized apis:

* Guards are returned instead of locking with closures. All condition variables
  have moved inside the guards and extraneous methods have been removed.
* Downgrading on an rwlock is now done through the guard instead of the rwlock
  itself.

These types are meant to be general locks, not locks of an internal type (for
external usage). New types will be introduced for locking shared data.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions