rt: Make the rust_task_thread lock private

This commit is contained in:
Brian Anderson
2012-03-01 22:29:47 -08:00
parent 2465a63a69
commit fa566ad2fd
2 changed files with 2 additions and 4 deletions

View File

@@ -107,8 +107,6 @@ rust_task::rust_task(rust_task_thread *thread, rust_task_list *state,
void
rust_task::delete_this()
{
I(thread, !thread->lock.lock_held_by_current_thread());
{
scoped_lock with (lock);
I(thread, port_table.is_empty());