rust/src/libnative
Alex Crichton 9668ab58f3 std: Move libnative task count bookkeeping to std
When using tasks in Rust, the expectation is that the runtime does not exit
before all tasks have exited. This is enforced in libgreen through the
`SchedPool` type, and it is enforced in libnative through a `bookkeeping` module
and a global count/mutex pair. Unfortunately, this means that a process which
originates with libgreen will not wait for spawned native tasks.

In order to fix this problem, the bookkeeping module was moved from libnative to
libstd so the runtime itself can wait for native tasks to exit. Green tasks do
not manage themselves through this bookkeeping module, but native tasks will
continue to manage themselves through this module.

Closes #12684
2014-03-05 21:48:08 -08:00
..
io std: Move libnative task count bookkeeping to std 2014-03-05 21:48:08 -08:00
lib.rs std: Move libnative task count bookkeeping to std 2014-03-05 21:48:08 -08:00
task.rs std: Move libnative task count bookkeeping to std 2014-03-05 21:48:08 -08:00