749 Commits

Author SHA1 Message Date
Amanieu d'Antras afa3dfcf5e Move hardware lock elision support to a separate Cargo feature 2022-01-28 13:09:34 +00:00
Amanieu d'Antras 273e660a1d Merge pull request #311 from clemenswasser/adopt-windows-rs 2022-01-08 19:26:02 +01:00
Clemens Wasser c562a5ef11 Adopt windows-rs 2022-01-08 16:13:01 +01:00
Amanieu d'Antras 94fbfa4d47 Merge pull request #309 from Amanieu/stable_asm 2021-12-19 21:26:34 +01:00
Amanieu d'Antras 361bd2d0a5 Fix build on latest nightly
asm! is now stable.
2021-12-19 19:56:33 +01:00
Amanieu d'Antras 7b1f455342 Merge pull request #307 from hlinnaka/improve-comments 2021-12-19 19:42:07 +01:00
Heikki Linnakangas 690dd197c8 Improve comments on fair mutexes.
The description of fair mutexes contained a bunch of typos, and felt a bit
hard to read in general.
2021-12-13 14:21:46 +02:00
Amanieu d'Antras 631873ebc1 Merge pull request #304 from coolreader18/asm-macro 2021-11-16 19:17:52 +00:00
Noa 44bad44154 Use :e registers on x32 2021-11-16 12:28:12 -06:00
Noa e7ddb58bfa Switch from llvm_asm!() to new asm!() macro 2021-11-11 16:52:52 -06:00
Amanieu d'Antras 6f92ec818e Merge pull request #303 from declanvk/is-locked-excl 2021-11-04 22:10:33 +00:00
Declan Kelly cf8bc36fc6 Add default implementation to trait method.
This ensures backwards compatibility with existing implementations
of the RawRwLock trait.
2021-11-04 11:58:31 -07:00
Declan Kelly 9bca21b4e4 Add a rwlock method to report if lock is held exclusively
Closes issue #293.
2021-11-03 22:48:58 -07:00
Amanieu d'Antras 5b1cc70908 Merge pull request #302 from Amanieu/wasm-fair-timeout 2021-11-01 00:07:34 +00:00
Amanieu d'Antras 5285db78af Use target_family = "wasm" 2021-10-31 23:48:16 +00:00
Amanieu d'Antras b42096c3e0 Disable eventual fairness on wasm32-unknown-unknown
std::time::Instant panics on this target and the external instant crate
adds undesirable external dependencies to the wasm module.
2021-10-31 23:47:23 +00:00
Amanieu d'Antras 0deb773983 Undo MSRV bump 2021-08-28 16:48:59 +01:00
Amanieu d'Antras fc7b452bcc Release parking_lot 0.11.2, parking_lot_core 0.8.4, lock_api 0.4.5 2021-08-28 00:55:51 +01:00
Amanieu d'Antras d18936a984 Upgrade dependencies and minimum CI version 2021-08-28 00:55:22 +01:00
Amanieu d'Antras a847a5b276 Fix memory orderings on rwlock upgrade.
Fixes #294
2021-08-25 01:18:24 +01:00
Amanieu d'Antras 7811e7b199 Merge pull request #292 from thomcc/word_lock_ordering 2021-08-09 01:41:28 +01:00
Thom Chiovoloni 83f10931e7 Detect and work around TSan's lack of support for fences 2021-08-08 07:42:36 -07:00
Thom Chiovoloni 716924e0eb Fix Ordering on WordLock (tsan detected) 2021-08-07 14:44:08 -07:00
Amanieu d'Antras 9621a1ba5c Bump MSRV to 1.41.0 2021-08-03 09:17:47 +01:00
Amanieu d'Antras 03642eccc5 Merge pull request #291 from notgull/arc-lock 2021-08-01 16:38:04 +01:00
not_a_seagull f5198cff05 arc lock to ci 2021-07-31 10:23:39 -07:00
not_a_seagull 422764cd35 whoops 2021-07-30 11:11:35 -07:00
not_a_seagull c820f17285 Fix the issue where it leaks memory for no reason 2021-07-30 11:06:34 -07:00
not_a_seagull d16a27b340 rwlock 2021-07-30 10:49:37 -07:00
not_a_seagull 5eb10607fb missed a spot 2021-07-30 09:36:38 -07:00
not_a_seagull f9de06b4a4 remutex locks 2021-07-30 09:35:09 -07:00
not_a_seagull a531300900 Add arc_lock feature 2021-07-29 15:51:47 -07:00
Amanieu d'Antras 6279a21738 Release lock_api 0.4.4 2021-05-01 01:46:12 +01:00
Amanieu d'Antras 78a276a4bb Remove const_fn feature 2021-05-01 01:46:12 +01:00
Amanieu d'Antras c8ee32630b Merge pull request #281 from RalfJung/const-fn-feature 2021-04-26 17:44:56 +01:00
Ralf Jung d640a42a30 add new const_fn_trait_bound feature gate 2021-04-26 17:22:05 +02:00
Amanieu d'Antras f1c818bd73 Release lock_api 0.4.3 2021-04-03 11:53:25 +01:00
Amanieu d'Antras 677b0410fe Merge pull request #280 from coolreader18/remutex-is_owned
Add [Raw]ReentrantMutex::is_owned_by_current_thread
2021-02-25 16:57:46 +00:00
Noah 808f8387b2 Add [Raw]ReentrantMutex::is_owned_by_current_thread 2021-02-18 09:30:16 -06:00
Amanieu d'Antras 0791286dd3 Release parking_lot_core 0.8.3 2021-02-12 19:08:21 +00:00
Amanieu d'Antras 9beb885ad3 Merge pull request #276 from FintanH/update-smallvec
Update smallvec to 1.6
2021-01-27 22:24:12 +00:00
Fintan Halpenny 6917b92f13 Update smallvec to 1.6.1
There was a vulnerability found in smallvec as described in:
* https://github.com/servo/rust-smallvec/issues/252
* https://github.com/RustSec/advisory-db/pull/552

This patch update the package version to 1.6.1 which is deemed safe to
use.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
2021-01-27 11:06:12 +00:00
Amanieu d'Antras 43332c6007 Merge pull request #275 from benesch/redox-syscall-02
core: Upgrade redox_syscall to v0.2.4
2021-01-26 22:23:08 +00:00
Nikhil Benesch 4aab6dfb1a core: Upgrade redox_syscall to v0.2.4 2021-01-25 09:26:50 -05:00
Amanieu d'Antras 590be37e13 Release parking_lot_core 0.8.2 2020-12-21 20:29:23 +01:00
Amanieu d'Antras d6c883d5ce Merge pull request #270 from ltratt/openbsd_too 2020-12-21 19:21:20 +00:00
Laurence Tratt b474671ca3 Simplify debug_asserts. 2020-12-21 18:45:40 +00:00
Laurence Tratt 25327dfb12 Revert "OpenBSD returns EINVAL in the same way as DragonFlyBSD."
This reverts commit 466cb58686.
2020-12-21 18:41:25 +00:00
Laurence Tratt 466cb58686 OpenBSD returns EINVAL in the same way as DragonFlyBSD. 2020-12-19 08:50:27 +00:00
Amanieu d'Antras aecb738aa0 Release parking_lot_core 0.8.1 2020-12-04 19:47:22 +00:00