File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change 2
2
#ifndef MEMORY_H
3
3
#define MEMORY_H
4
4
5
- #if 0
6
- inline void operator delete(void *mem, rust_task *task) {
7
- task->free(mem);
8
- return;
9
- }
10
- #endif
11
-
12
5
// FIXME: It would be really nice to be able to get rid of this.
13
6
inline void *operator new [](size_t size, rust_task *task) {
14
7
return task->malloc (size);
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ void rust_chan::send(void *sptr) {
88
88
buffer.dequeue (NULL );
89
89
} else {
90
90
rust_port *target_port = port->referent ();
91
- scoped_lock right (target_port->lock );
91
+ scoped_lock with (target_port->lock );
92
92
if (target_port->task ->blocked_on (target_port)) {
93
93
DLOG (sched, comm, " dequeued in rendezvous_ptr" );
94
94
buffer.dequeue (target_port->task ->rendezvous_ptr );
You can’t perform that action at this time.
0 commit comments