Don't allow event loops to run in parallel
This commit is contained in:
parent
924f3323b5
commit
b0106898f7
3 changed files with 19 additions and 11 deletions
|
|
@ -69,7 +69,8 @@ impl<T> EventLoopWindowTarget<T> {
|
|||
EventLoopProxy::new(self.runner.clone())
|
||||
}
|
||||
|
||||
pub fn run(&self, event_handler: Box<runner::EventHandler<T>>) {
|
||||
pub fn run(&self, event_handler: Box<runner::EventHandler<T>>, event_loop_recreation: bool) {
|
||||
self.runner.event_loop_recreation(event_loop_recreation);
|
||||
self.runner.set_listener(event_handler);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue