diff options
| author | Matthew Collins <[email protected]> | 2018-02-23 17:07:52 +0000 |
|---|---|---|
| committer | Matthew Collins <[email protected]> | 2018-02-23 17:07:52 +0000 |
| commit | d09b397c1e8090df3a4efcc31f399cb5ce079d6e (patch) | |
| tree | 837a273e513e66e4d50faac1fe9bac9869db015c | |
| parent | Add intellij to .gitignore (diff) | |
| download | steamworks-rs-d09b397c1e8090df3a4efcc31f399cb5ce079d6e.tar.xz steamworks-rs-d09b397c1e8090df3a4efcc31f399cb5ce079d6e.zip | |
Make the client `Send + Sync`
| -rw-r--r-- | src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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. |