mirror of
https://github.com/mii443/rust-openvr.git
synced 2025-08-22 16:25:36 +00:00
Adde Send+Sync to Hmd
This commit is contained in:
@ -10,7 +10,6 @@ authors = [
|
||||
build = "scripts/build.rs"
|
||||
|
||||
[lib]
|
||||
|
||||
name = "ovr"
|
||||
path = "src/oculus-vr/lib.rs"
|
||||
|
||||
@ -19,5 +18,4 @@ name = "oculus-info"
|
||||
path = "src/oculus-info/main.rs"
|
||||
|
||||
[dependencies.cgmath]
|
||||
|
||||
git = "https://github.com/bjz/cgmath-rs.git"
|
||||
|
@ -402,6 +402,9 @@ pub struct Hmd {
|
||||
ptr: *mut ll::Hmd
|
||||
}
|
||||
|
||||
unsafe impl Sync for Hmd {}
|
||||
unsafe impl Send for Hmd {}
|
||||
|
||||
impl Drop for Hmd {
|
||||
fn drop(&mut self) {
|
||||
unsafe {ll::ovrHmd_Destroy(self.ptr)}
|
||||
|
Reference in New Issue
Block a user