Commit graph

2 commits

Author SHA1 Message Date
Victor Berger e6e96ab6f4 tests: don't instanciate an event loop to check EventsLoop: Send+Sync 2017-03-04 09:09:09 +01:00
mitchmindtree 3ce7904e01 Wrap the temporarily stored user callback in a type to enforce
invariants

This also removes the need for "box"ing the callback in favour of
storing a raw `*mut` pointer. We can do this by ensuring that we never
store the pointer for longer than the lifetime of the user callback,
which is the duration of a call to `poll_events` or `run_forever`.

Also removes old commented out event code from the window module.
2017-02-05 12:51:09 +11:00