Skip to content

Commit 3fa5ce0

Browse files
committed
---
yaml --- r: 3935 b: refs/heads/master c: 01a52d7 h: refs/heads/master i: 3933: 90a7b90 3931: 26aeb87 3927: 911ff26 3919: 52ebcbc 3903: 6c687cb v: v3
1 parent 3c77121 commit 3fa5ce0

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
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: 4738cf83b05dc02d1f7a364a6e901a1b5a18da20
2+
refs/heads/master: 01a52d728c5058769e6c0939c57579821f238056

trunk/src/lib/task.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ native "rust" mod rustrt {
22
fn task_sleep(uint time_in_us);
33
fn task_yield();
44
fn task_join(task t);
5+
fn task_unsupervise();
56
fn pin_task();
67
fn unpin_task();
78
}
@@ -23,6 +24,10 @@ fn join(task t) {
2324
ret rustrt::task_join(t);
2425
}
2526

27+
fn unsupervise() {
28+
ret rustrt::task_unsupervise();
29+
}
30+
2631
fn pin() {
2732
rustrt::pin_task();
2833
}

trunk/src/rt/rust_builtin.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,11 @@ task_join(rust_task *task, rust_task *join_task) {
425425
}
426426
}
427427

428+
extern "C" CDECL void
429+
task_unsupervise(rust_task *task) {
430+
task->unsupervise();
431+
}
432+
428433
/* Debug builtins for std.dbg. */
429434

430435
static void

0 commit comments

Comments
 (0)