Comments (4)
What are you trying to do with the raw locks? You should have everything that you need with the normal Mutex
and RwLock
types. You can do anything that the raw API can with Mutex<()>
and Mutex::force_unlock
.
The lock_api
is primarily intended for people implementing different lock types that are not based on parking_lot, such as spinlocks and using Linux futexes directly.
from parking_lot.
I'm trying to implement my own concurrent map (https://pastebin.mozilla.org/9089970) that is generic across lock_api
traits. In order to actually use it, or even just test it, I need to have an implementation of RawRwLock
, of which I only know parking_lot
's one. Obviously, using Mutex<()>
will no longer be generic across raw lock implementations.
from parking_lot.
Added RawMutex
and RawRwLock
in 0.6.3.
from parking_lot.
from parking_lot.
Related Issues (20)
- lock_api: `RwLockReadGuard::unlocked` incorrectly claims fairness
- Doesn't require what glue? HOT 1
- Time for a new parking_lot_core release? HOT 1
- `ReentrantMutex::bump()` probably needs to adjust the `lock_count`
- Panic in Linux thread_parker HOT 3
- Fail to upgrade a upgradable read lock twice in a scope
- Consider enabling deadlock_detection in docs.rs builds
- Update README claims HOT 1
- Weird error when passing guards to another thread HOT 5
- INIT constrains which types can be used to implement RawMutex HOT 8
- Why does `notify_one_slow` return true even if threads were only requeued, and not unparked? HOT 2
- Panic when dropping `RwLockUpgradableReadGuard` after using `with_upgraded` HOT 2
- Allow indirect/partially owned mapping HOT 1
- Migrate to `safer_owning_ref` HOT 2
- RawMutex moving. HOT 1
- typo: Release date on CHANGELOG for parking_lot_core 0.9.9 and lock_api 0.4.11 is wrong
- Sorry for issue, is unic way to comunicate with you, please remove after. thanks
- Mutex performance drop in case of cache contention
- Update documentation of differences between `parking_lot::Mutex` and `std::sync::Mutex`
- Fail to `upgrade` an `ArcRwLockUpgradableReadGuard` twice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parking_lot.