forked from mirrors/gstreamer-rs
Also implement Sync+Send for Event and Message
This commit is contained in:
parent
bb1b3cb1b4
commit
499ca3eff3
2 changed files with 6 additions and 0 deletions
|
@ -26,6 +26,9 @@ pub struct EventRef(ffi::GstEvent);
|
|||
|
||||
pub type Event = GstRc<EventRef>;
|
||||
|
||||
unsafe impl Sync for EventRef {}
|
||||
unsafe impl Send for EventRef {}
|
||||
|
||||
unsafe impl MiniObject for EventRef {
|
||||
type GstType = ffi::GstEvent;
|
||||
}
|
||||
|
|
|
@ -27,6 +27,9 @@ pub struct MessageRef(ffi::GstMessage);
|
|||
|
||||
pub type Message = GstRc<MessageRef>;
|
||||
|
||||
unsafe impl Sync for MessageRef {}
|
||||
unsafe impl Send for MessageRef {}
|
||||
|
||||
unsafe impl MiniObject for MessageRef {
|
||||
type GstType = ffi::GstMessage;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue