Skip to content

Commit

Permalink
use crates.io
Browse files Browse the repository at this point in the history
Signed-off-by: glorv <[email protected]>
  • Loading branch information
glorv committed Dec 14, 2022
1 parent 5e35595 commit 4bde2f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository = "https://github.com/tikv/yatp/"

[dependencies]
crossbeam-deque = "0.8"
crossbeam-skiplist = { git = "https://github.com/crossbeam-rs/crossbeam" }
crossbeam-skiplist = "0.1"
dashmap = "5.1"
fail = "0.5"
lazy_static = "1"
Expand Down
3 changes: 2 additions & 1 deletion src/queue/priority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ impl<T: TaskCell + Send + 'static> QueueCore<T> {
}
}

/// A holder to store task. The slot can be concurrently visit by multiple thread in the skip-list.
/// A holder to store task. We wrap the value in an atomic ptr because the return value of pop()
/// only provide readonly reference to this value, though in our can it's safe to just take it.
struct Slot<T> {
ptr: AtomicPtr<T>,
}
Expand Down

0 comments on commit 4bde2f5

Please sign in to comment.