core: Add priv::chan_from_global_ptr

This allows singleton, globally accessible tasks to be created
This commit is contained in:
Brian Anderson
2012-04-04 21:17:50 -07:00
parent 52e084b92a
commit 63942c969d
4 changed files with 159 additions and 1 deletions

View File

@@ -776,6 +776,12 @@ rust_osmain_sched_id() {
return task->kernel->osmain_sched_id();
}
extern "C" CDECL bool
rust_compare_and_swap_ptr(intptr_t *address,
intptr_t oldval, intptr_t newval) {
return sync::compare_and_swap(address, oldval, newval);
}
//
// Local Variables:
// mode: C++