Skip to content

Commit fb94f68

Browse files
committed
---
yaml --- r: 31645 b: refs/heads/dist-snap c: 4174de8 h: refs/heads/master i: 31643: 03c5b56 v: v3
1 parent 325f7df commit fb94f68

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
@@ -7,6 +7,6 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10-
refs/heads/dist-snap: f57760c609d636d2e4698a26848f5c990d417265
10+
refs/heads/dist-snap: 4174de8bb941c3edbeb14f42ab4ebbfff5fb176d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/dist-snap/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/dist-snap/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)