about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-10-22 14:59:21 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-10-24 15:16:58 -0700
commit3b30377e14f60e6381dc1536bd53b5f9c7a3d7c7 (patch)
treeca993dd071cfac96b127bac93536960fe5ed5e7d /src/rt/sync/rust_thread.cpp
parent3f5b2219cc893b30863f9136703166f306fcc684 (diff)
downloadrust-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