Skip to main content

OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded

Struct OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded 

Source
#[repr(C)]
pub struct OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded<MUTEX_TYPE> { pub _phantom_0: PhantomData<UnsafeCell<MUTEX_TYPE>>, pub _base: OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCache, pub _mutex: MUTEX_TYPE, }
Expand description

@brief Template for declaring thread-safe subclasses of SurfaceFactoryCache

SurfaceFactoryCacheThreaded extends SurfaceFactoryCache by protecting access to the cache to ensure thread-safe operation. A mutex type and associated locks are specified to declare a subclass with appropriately protected read and write access.

@tparam MUTEX_TYPE A mutex type with supported lock guards @tparam READ_LOCK_GUARD_TYPE A scoped lock guard allowing potentially shared access for read operations. @tparam WRITE_LOCK_GUARD_TYPE A scoped lock guard allowing exclusive access for write operations.

Fields§

§_phantom_0: PhantomData<UnsafeCell<MUTEX_TYPE>>§_base: OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCache§_mutex: MUTEX_TYPE

@endcond PROTECTED

Auto Trait Implementations§

§

impl<MUTEX_TYPE> Freeze for OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded<MUTEX_TYPE>
where MUTEX_TYPE: Freeze,

§

impl<MUTEX_TYPE> !RefUnwindSafe for OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded<MUTEX_TYPE>

§

impl<MUTEX_TYPE> !Send for OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded<MUTEX_TYPE>

§

impl<MUTEX_TYPE> !Sync for OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded<MUTEX_TYPE>

§

impl<MUTEX_TYPE> Unpin for OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded<MUTEX_TYPE>
where MUTEX_TYPE: Unpin,

§

impl<MUTEX_TYPE> UnsafeUnpin for OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded<MUTEX_TYPE>
where MUTEX_TYPE: UnsafeUnpin,

§

impl<MUTEX_TYPE> UnwindSafe for OpenSubdiv_v3_7_0_Bfr_SurfaceFactoryCacheThreaded<MUTEX_TYPE>
where MUTEX_TYPE: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.