Skip to content

Commit f073896

Browse files
committed
---
yaml --- r: 6394 b: refs/heads/master c: 0dfa141 h: refs/heads/master v: v3
1 parent 2c028fd commit f073896

File tree

4 files changed

+1
-20
lines changed

4 files changed

+1
-20
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 63d40b8ab661ae1921bac26e0e4c72fb0ce57586
2+
refs/heads/master: 0dfa1410d3bbe6eb30e2e97b8eeb2b403ac25660

trunk/src/rt/rust_scheduler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ rust_scheduler::create_task(rust_task *spawner, const char *name) {
343343
task, spawner ? spawner->name : "null", name);
344344
if(spawner) {
345345
task->pin(spawner->pinned_on);
346-
task->on_wakeup(spawner->_on_wakeup);
347346
}
348347

349348
{

trunk/src/rt/rust_task.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ rust_task::rust_task(rust_scheduler *sched, rust_task_list *state,
115115
running_on(-1),
116116
pinned_on(-1),
117117
local_region(&sched->srv->local_region),
118-
_on_wakeup(NULL),
119118
failed(false),
120119
killed(false),
121120
propagate_failure(true),
@@ -456,10 +455,6 @@ rust_task::wakeup(rust_cond *from) {
456455
cond = NULL;
457456
cond_name = "none";
458457

459-
if(_on_wakeup) {
460-
_on_wakeup->on_wakeup();
461-
}
462-
463458
sched->lock.signal();
464459
}
465460

@@ -523,10 +518,6 @@ void rust_task::unpin() {
523518
pinned_on = -1;
524519
}
525520

526-
void rust_task::on_wakeup(rust_task::wakeup_callback *callback) {
527-
_on_wakeup = callback;
528-
}
529-
530521
rust_port_id rust_task::register_port(rust_port *port) {
531522
I(sched, !lock.lock_held_by_current_thread());
532523
scoped_lock with(lock);

trunk/src/rt/rust_task.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
106106

107107
memory_region local_region;
108108

109-
class wakeup_callback {
110-
public:
111-
virtual void on_wakeup() = 0;
112-
};
113-
114-
wakeup_callback *_on_wakeup;
115-
116109
// Indicates that the task ended in failure
117110
bool failed;
118111
// Indicates that the task was killed and needs to unwind
@@ -189,8 +182,6 @@ rust_task : public kernel_owned<rust_task>, rust_cond
189182
void pin(int id);
190183
void unpin();
191184

192-
void on_wakeup(wakeup_callback *callback);
193-
194185
rust_port_id register_port(rust_port *port);
195186
void release_port(rust_port_id id);
196187
rust_port *get_port_by_id(rust_port_id id);

0 commit comments

Comments
 (0)