diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-12-15 00:42:21 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-12-24 19:59:54 -0800 |
| commit | 51c03c1f35f6b076928a1e5b94ec81e6d00c3ac2 (patch) | |
| tree | 5503ef16e6be59f8a0c8948fe347d48be9267a47 /src/rustllvm/RustWrapper.cpp | |
| parent | 282f3d99a5ad85acbc58c03b5dfcdabf649c0c85 (diff) | |
| download | rust-51c03c1f35f6b076928a1e5b94ec81e6d00c3ac2.tar.gz rust-51c03c1f35f6b076928a1e5b94ec81e6d00c3ac2.zip | |
green: Properly wait for main before shutdown
There was a race in the code previously where schedulers would *immediately* shut down after spawning the main task (because the global task count would still be 0). This fixes the logic by blocking the sched pool task in receving on a port instead of spawning a task into the pool to receive on a port. The modifications necessary were to have a "simple task" running by the time the code is executing, but this is a simple enough thing to implement and I forsee this being necessary to have implemented in the future anyway.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
