Module rustrt::bookkeeping[src]

Task bookkeeping

This module keeps track of the number of running tasks so that entry points with libnative know when it's possible to exit the program (once all tasks have exited).

The green counterpart for this is bookkeeping on sched pools, and it's up to each respective runtime to make sure that they call increment() and decrement() manually.

Functions

decrement
increment
wait_for_other_tasks

Waits for all other native tasks in the system to exit. This is only used by the entry points of native programs