]> git.lizzy.rs Git - rust.git/commit
Guarantee that native tasks wait for children
authorAlex Crichton <alex@alexcrichton.com>
Sat, 4 Jan 2014 20:02:02 +0000 (12:02 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 6 Jan 2014 06:28:23 +0000 (22:28 -0800)
commit9c8813f006d9955196b5e9c21c06df8a8b1a3f15
tree2f524eb47c3a2dcbda91a52257f3c20fa3626902
parentb432e82515f4cc145cf41bbcb92ff9b874b23afe
Guarantee that native tasks wait for children

There was a scheduling race where a child may not increment the global task
count before the parent exits, and the parent would then think that there are no
more tasks left.
src/libnative/task.rs
src/test/run-pass/native-always-waits.rs [new file with mode: 0644]