Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a basic event loop without libuv #10054

Merged
merged 3 commits into from
Oct 25, 2013

Commits on Oct 24, 2013

  1. 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.
    alexcrichton committed Oct 24, 2013
    Configuration menu
    Copy the full SHA
    3b30377 View commit details
    Browse the repository at this point in the history
  2. Remove the 'callback_ms' function from EventLoop

    This is a peculiar function to require event loops to implement, and it's only
    used in one spot during tests right now. Instead, a possibly more robust apis
    for timers should be used rather than requiring all event loops to implement a
    curious-looking function.
    alexcrichton committed Oct 24, 2013
    Configuration menu
    Copy the full SHA
    3ee5ef1 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2013

  1. Implement a basic event loop built on LittleLock

    It's not guaranteed that there will always be an event loop to run, and this
    implementation will serve as an incredibly basic one which does not provide any
    I/O, but allows the scheduler to still run.
    
    cc rust-lang#9128
    alexcrichton committed Oct 25, 2013
    5 Configuration menu
    Copy the full SHA
    64a5c3b View commit details
    Browse the repository at this point in the history