mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-22 17:08:18 +00:00
Implement Send+Sync for all wrapper types
This commit is contained in:
parent
24e5c435a7
commit
bcb4617856
6 changed files with 18 additions and 0 deletions
|
@ -199,6 +199,9 @@ pub type BaseSinkClass = ClassStruct<BaseSink>;
|
|||
unsafe impl BaseSinkClassExt<BaseSink> for BaseSinkClass {}
|
||||
unsafe impl ElementClassExt<BaseSink> for BaseSinkClass {}
|
||||
|
||||
unsafe impl Send for BaseSink {}
|
||||
unsafe impl Sync for BaseSink {}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! box_base_sink_impl(
|
||||
($name:ident) => {
|
||||
|
|
|
@ -250,6 +250,9 @@ pub type BaseSrcClass = ClassStruct<BaseSrc>;
|
|||
unsafe impl BaseSrcClassExt<BaseSrc> for BaseSrcClass {}
|
||||
unsafe impl ElementClassExt<BaseSrc> for BaseSrcClass {}
|
||||
|
||||
unsafe impl Send for BaseSrc {}
|
||||
unsafe impl Sync for BaseSrc {}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! box_base_src_impl(
|
||||
($name:ident) => {
|
||||
|
|
|
@ -324,6 +324,9 @@ pub type BaseTransformClass = ClassStruct<BaseTransform>;
|
|||
unsafe impl BaseTransformClassExt<BaseTransform> for BaseTransformClass {}
|
||||
unsafe impl ElementClassExt<BaseTransform> for BaseTransformClass {}
|
||||
|
||||
unsafe impl Send for BaseTransform {}
|
||||
unsafe impl Sync for BaseTransform {}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! box_base_transform_impl(
|
||||
($name:ident) => {
|
||||
|
|
|
@ -105,6 +105,9 @@ pub type BinClass = ClassStruct<Bin>;
|
|||
unsafe impl BinClassExt<Bin> for BinClass {}
|
||||
unsafe impl ElementClassExt<Bin> for BinClass {}
|
||||
|
||||
unsafe impl Send for Bin {}
|
||||
unsafe impl Sync for Bin {}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! box_bin_impl(
|
||||
($name:ident) => {
|
||||
|
|
|
@ -166,6 +166,9 @@ pub type ElementClass = ClassStruct<Element>;
|
|||
// FIXME: Boilerplate
|
||||
unsafe impl ElementClassExt<Element> for ElementClass {}
|
||||
|
||||
unsafe impl Send for Element {}
|
||||
unsafe impl Sync for Element {}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! box_element_impl(
|
||||
($name:ident) => {
|
||||
|
|
|
@ -64,6 +64,9 @@ unsafe impl PipelineClassExt<Pipeline> for PipelineClass {}
|
|||
unsafe impl BinClassExt<Pipeline> for PipelineClass {}
|
||||
unsafe impl ElementClassExt<Pipeline> for PipelineClass {}
|
||||
|
||||
unsafe impl Send for Pipeline {}
|
||||
unsafe impl Sync for Pipeline {}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! box_pipeline_impl(
|
||||
($name:ident) => {
|
||||
|
|
Loading…
Reference in a new issue