File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e3ccac8ed3b447ffecfbba7402760c083b9e51e2
2
+ refs/heads/master: 93fa933a1926f953fa74b9b4908c0e6dc9b0a964
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -21,11 +21,7 @@ rust_port::~rust_port() {
21
21
}
22
22
23
23
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);
29
25
}
30
26
31
27
void rust_port::send (void *sptr) {
Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ rust_port_id rust_task::register_port(rust_port *port) {
481
481
}
482
482
483
483
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 );
485
485
port_table.remove (id);
486
486
}
487
487
You can’t perform that action at this time.
0 commit comments