-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(api)!: fix safety issue with
raw::Mutex
locking API (#17)
* remove `raw::MutexGuard` * remove `raw::Mutex::lock` and `raw::Mutex::try_lock` * rename `raw::Mutex::lock_with` method to `raw::Mutex::lock_then` * rename `raw::Mutex::try_lock_with` method to `raw::Mutex::try_lock_then` * rename `raw::Mutex::lock_with_local` method to `raw::Mutex::lock_with_local_then` * rename `raw::Mutex::lock_with_local_unchecked` method to `raw::Mutex::lock_with_local_then_unchecked` * rename `raw::Mutex::try_lock_with_local` method to `raw::Mutex::try_lock_with_local_then` * rename `raw::Mutex::try_lock_with_local_unchecked` method to `raw::Mutex::try_lock_with_local_then_unchecked` * rename `barging::Mutex::lock_with` method to `barging::Mutex::lock_then` * rename `barging::Mutex::try_lock_with` method to `barging::Mutex::try_lock_then` * change closure parameters of `raw::Mutex`'s `then` (previous `with`) locking methods from `MutexGuard` to `&mut T` * add new `raw::Mutex::lock_with_then` method * add new `raw::Mutex::try_lock_with_then` method
- Loading branch information
1 parent
ff456f5
commit 9622d92
Showing
26 changed files
with
2,951 additions
and
1,807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[profile.default-miri] | ||
test-threads = "num-cpus" | ||
slow-timeout = { period = "120s", terminate-after = 2 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Semver | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
semver: | ||
name: Check semver | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Rust stable | ||
run: rustup toolchain install stable | ||
- name: Check semver violations | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.