Fix macos build (#186)
* fix compile error * fix missing function error * fix undefined behavior issue * require callback to be `Send`
This commit is contained in:
parent
5105427529
commit
37016e612c
2 changed files with 4 additions and 4 deletions
|
|
@ -374,7 +374,7 @@ impl EventLoop {
|
|||
/// You can call the other methods of `EventLoop` without getting a deadlock.
|
||||
#[inline]
|
||||
pub fn run<F>(&self, mut callback: F) -> !
|
||||
where F: FnMut(VoiceId, UnknownTypeBuffer)
|
||||
where F: FnMut(VoiceId, UnknownTypeBuffer) + Send
|
||||
{
|
||||
self.0.run(move |id, buf| callback(VoiceId(id), buf))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue