diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-02 15:51:47 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-02 16:33:33 -0800 |
| commit | f4ce965ce70f7f7ffa62df721d083cb3eafeb19d (patch) | |
| tree | f4d844a78325530ba5798d7afe36d4e8ef7f1e8b /src/rt/rust_builtin.cpp | |
| parent | 3d991bac6c557d7bb723f0ce2bc1e79ba6bdaf5a (diff) | |
| download | rust-f4ce965ce70f7f7ffa62df721d083cb3eafeb19d.tar.gz rust-f4ce965ce70f7f7ffa62df721d083cb3eafeb19d.zip | |
rt: Port ref counts are protected by the task lock. Ick.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index cacae7259ca..05295bcd1a9 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -511,7 +511,7 @@ rust_port_detach(rust_port *port) { // FIXME: Busy waiting until we're the only ref bool done = false; while (!done) { - scoped_lock with(port->lock); + scoped_lock with(task->lock); done = port->ref_count == 1; } } |
