rt: Remove lock_held_by_current_thread

This commit is contained in:
Brian Anderson
2012-03-18 15:59:00 -07:00
parent e4af1ca065
commit b247de6458
9 changed files with 0 additions and 75 deletions

View File

@@ -121,8 +121,6 @@ rust_task_thread::number_of_live_tasks() {
*/
void
rust_task_thread::reap_dead_tasks() {
I(this, lock.lock_held_by_current_thread());
if (dead_tasks.length() == 0) {
return;
}
@@ -358,7 +356,6 @@ rust_task_thread::place_task_in_tls(rust_task *task) {
void
rust_task_thread::exit() {
A(this, !lock.lock_held_by_current_thread(), "Shouldn't have lock");
scoped_lock with(lock);
should_exit = true;
lock.signal();