This commit is contained in:
tomaka 2017-11-01 10:15:17 +01:00 committed by GitHub
parent 91adc3e380
commit 743e4e3526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -325,8 +325,16 @@ impl EventLoop {
pub fn new() -> EventLoop { pub fn new() -> EventLoop {
let pending_trigger = Trigger::new(); let pending_trigger = Trigger::new();
let initial_descriptors = vec![
libc::pollfd {
fd: pending_trigger.read_fd(),
events: libc::POLLIN,
revents: 0,
},
];
let run_context = Mutex::new(RunContext { let run_context = Mutex::new(RunContext {
descriptors: Vec::new(), // TODO: clearify in doc initial value not necessary descriptors: initial_descriptors,
voices: Vec::new(), voices: Vec::new(),
}); });