diff --git a/Cargo.toml b/Cargo.toml index ebb4c93..efde953 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/oculus-vr/lib.rs b/src/oculus-vr/lib.rs index 2077ef3..438829c 100644 --- a/src/oculus-vr/lib.rs +++ b/src/oculus-vr/lib.rs @@ -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)}