rusticl/util: make ThreadSafeCPtr Copy, Clone and transparent
Reviewed-by: Seán de Búrca <sdeburca@fastmail.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37377>
This commit is contained in:
@@ -14,7 +14,8 @@ use std::{
|
||||
};
|
||||
|
||||
/// A wrapper around pointers to C data type which are considered thread safe.
|
||||
#[derive(Eq)]
|
||||
#[derive(Copy, Clone, Eq)]
|
||||
#[repr(transparent)]
|
||||
pub struct ThreadSafeCPtr<T>(NonNull<T>);
|
||||
|
||||
impl<T> ThreadSafeCPtr<T> {
|
||||
|
||||
Reference in New Issue
Block a user