Skip to content

Commit

Permalink
Remove os-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Dec 3, 2020
1 parent cdd16ef commit adfd00e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ include = [

[features]
default = []
# Enables std usage for traits
# Enables std usage
std = []
# Enables C API wrapper for platform code.
c_wrapper = ["cc"]
Expand All @@ -35,10 +35,6 @@ version = "0.3"
optional = true
default-features = true

# posix only
[target.'cfg(all(unix, not(any(target_os = "macos", target_os = "ios"))))'.dependencies]
os-sync = "0.3"

[target.'cfg(windows)'.dependencies.winapi]
version = "0.3"
features = ["threadpoolapiset"]
Expand Down
3 changes: 2 additions & 1 deletion src/timer/posix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ impl super::SyncTimer for PosixTimer {
fn init<R, F: Fn(&TimerState) -> R>(&mut self, init: F) -> R {
#[cfg(not(feature = "c_wrapper"))]
{
static RUNTIME: os_sync::Once = os_sync::Once::new();
extern crate std;
static RUNTIME: std::sync::Once = std::sync::Once::new();
RUNTIME.call_once(init_sig);
}

Expand Down

0 comments on commit adfd00e

Please sign in to comment.