diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-03 02:50:23 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-05 19:39:56 -0800 |
| commit | 8e0efce0dad2a63fd290918df38a1d7626e6d4b3 (patch) | |
| tree | 7d375e0bf7a2bcb26b907c2a8099b14ea8d2450c /src/rt/rust_builtin.cpp | |
| parent | 93fa933a1926f953fa74b9b4908c0e6dc9b0a964 (diff) | |
| download | rust-8e0efce0dad2a63fd290918df38a1d7626e6d4b3.tar.gz rust-8e0efce0dad2a63fd290918df38a1d7626e6d4b3.zip | |
rt: Move some code from rust_port_detach into rust_port::detach
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index dcf01e4420e..17c958633d1 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -486,12 +486,6 @@ rust_port_detach(rust_port *port) { rust_task *task = rust_task_thread::get_task(); LOG(task, comm, "rust_port_detach(0x%" PRIxPTR ")", (uintptr_t) port); port->detach(); - // FIXME: Busy waiting until we're the only ref - bool done = false; - while (!done) { - scoped_lock with(task->port_lock); - done = port->ref_count == 1; - } } extern "C" CDECL void |
