Skip to content

Commit 50d186f

Browse files
committed
---
yaml --- r: 20875 b: refs/heads/snap-stage3 c: 4174de8 h: refs/heads/master i: 20873: 53219c7 20871: a9a7c1e v: v3
1 parent 9ebda70 commit 50d186f

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f57760c609d636d2e4698a26848f5c990d417265
4+
refs/heads/snap-stage3: 4174de8bb941c3edbeb14f42ab4ebbfff5fb176d
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/rt/rust_builtin.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,18 @@ task_signal_event(rust_task *target, void *event) {
968968
target->signal_event(event);
969969
}
970970

971+
// Can safely run on the rust stack.
972+
extern "C" void
973+
rust_task_ref(rust_task *task) {
974+
task->ref();
975+
}
976+
977+
// Don't run on the rust stack!
978+
extern "C" void
979+
rust_task_deref(rust_task *task) {
980+
task->deref();
981+
}
982+
971983
//
972984
// Local Variables:
973985
// mode: C++

branches/snap-stage3/src/rt/rustrt.def.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,5 @@ rust_signal_cond_lock
194194
rust_get_task_local_data
195195
rust_set_task_local_data
196196
rust_task_local_data_atexit
197+
rust_task_ref
198+
rust_task_deref

0 commit comments

Comments
 (0)