aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Collins <[email protected]>2018-02-23 17:07:52 +0000
committerMatthew Collins <[email protected]>2018-02-23 17:07:52 +0000
commitd09b397c1e8090df3a4efcc31f399cb5ce079d6e (patch)
tree837a273e513e66e4d50faac1fe9bac9869db015c
parentAdd intellij to .gitignore (diff)
downloadsteamworks-rs-d09b397c1e8090df3a4efcc31f399cb5ce079d6e.tar.xz
steamworks-rs-d09b397c1e8090df3a4efcc31f399cb5ce079d6e.zip
Make the client `Send + Sync`
-rw-r--r--src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e76361e..d8e3e31 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -45,6 +45,9 @@ struct ClientInner {
callbacks: Mutex<Vec<*mut libc::c_void>>,
}
+unsafe impl Send for ClientInner {}
+unsafe impl Sync for ClientInner {}
+
impl Client {
/// Attempts to initialize the steamworks api and returns
/// a client to access the rest of the api.