Revert "rt: Remove lock_held_by_current_thread"

Adds back the ability to make assertions about locks, but only under the
--enable-debug configuration

This reverts commit b247de6458.

Conflicts:

	src/rt/rust_sched_loop.cpp
This commit is contained in:
Brian Anderson
2012-03-30 18:37:30 -07:00
parent 609144f7a6
commit c8dc6fcb4c
6 changed files with 111 additions and 0 deletions

View File

@@ -108,6 +108,8 @@ rust_sched_loop::number_of_live_tasks() {
*/
void
rust_sched_loop::reap_dead_tasks() {
lock.must_have_lock();
if (dead_task == NULL) {
return;
}