Skip to content

Commit 203f82d

Browse files
committed
---
yaml --- r: 11644 b: refs/heads/master c: 93fa933 h: refs/heads/master v: v3
1 parent 51e21c7 commit 203f82d

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e3ccac8ed3b447ffecfbba7402760c083b9e51e2
2+
refs/heads/master: 93fa933a1926f953fa74b9b4908c0e6dc9b0a964
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rt/rust_port.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ rust_port::~rust_port() {
2121
}
2222

2323
void rust_port::detach() {
24-
I(task->thread, !task->port_lock.lock_held_by_current_thread());
25-
scoped_lock with(task->port_lock);
26-
{
27-
task->release_port(id);
28-
}
24+
task->release_port(id);
2925
}
3026

3127
void rust_port::send(void *sptr) {

trunk/src/rt/rust_task.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ rust_port_id rust_task::register_port(rust_port *port) {
481481
}
482482

483483
void rust_task::release_port(rust_port_id id) {
484-
I(thread, port_lock.lock_held_by_current_thread());
484+
scoped_lock with(port_lock);
485485
port_table.remove(id);
486486
}
487487

0 commit comments

Comments
 (0)