diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-10-22 14:59:21 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-10-24 15:16:58 -0700 |
| commit | 3b30377e14f60e6381dc1536bd53b5f9c7a3d7c7 (patch) | |
| tree | ca993dd071cfac96b127bac93536960fe5ed5e7d /src/rt/sync/rust_thread.cpp | |
| parent | 3f5b2219cc893b30863f9136703166f306fcc684 (diff) | |
| download | rust-3b30377e14f60e6381dc1536bd53b5f9c7a3d7c7.tar.gz rust-3b30377e14f60e6381dc1536bd53b5f9c7a3d7c7.zip | |
Fix a bug with the scheduler and destructor order
The PausibleIdleCallback must have some handle into the event loop, and because struct destructors are run in order of top-to-bottom in order of fields, this meant that the event loop was getting destroyed before the idle callback was getting destroyed. I can't confirm that this fixes a problem in how we use libuv, but it does semantically fix a problem for usage with other event loops.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions
