diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-04-04 21:17:50 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-04-06 17:44:26 -0700 |
| commit | 63942c969df0adc88aeec86437e78f69145cd693 (patch) | |
| tree | afc2414ce9cb7196bcff6b6fadcdce5d4178f060 /src/rt/rust_builtin.cpp | |
| parent | 52e084b92afd95630900f2067cca679e75aab36a (diff) | |
| download | rust-63942c969df0adc88aeec86437e78f69145cd693.tar.gz rust-63942c969df0adc88aeec86437e78f69145cd693.zip | |
core: Add priv::chan_from_global_ptr
This allows singleton, globally accessible tasks to be created
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 9c2e2c3276c..910331fa7c0 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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++ |
