rust-osdev / spinning_top Goto Github PK
View Code? Open in Web Editor NEWA simple spinlock crate based on the abstractions provided by the `lock_api` crate.
License: Apache License 2.0
A simple spinlock crate based on the abstractions provided by the `lock_api` crate.
License: Apache License 2.0
This crate is quite new and hasn't been reviewed by anyone yet. I would appreciate any reviews on the code especially on the unsafe
implementation of the RawMutex
trait:
Lines 29 to 57 in 5e78baa
Basically, reviving #6.
Would you be interested in a PR adding a simple spinning RwLock
? If concerned with minimalism, it could be behind a feature flag.
It would be nice if there was a spinlock equivalent of an RwLock in this crate as well. In my crate, I have the need of a read-write lock in a #![no_std]
context. I am willing to implement this pull request.
Hello! I've taken over maintenance of spin-rs
. It now has support for lock_api
and Send
/Sync
guards among other things. I doubt it'll have much bearing on spinning_top
, but I thought you'd be interested in this (I'm told that spin-rs
's lack of maintenance was the primary driving force behind this crate's development).
It would be cool to have a way to construct a Spinlock in a const context. This would be super useful for a bunch of stuff I'm currently doing.
Would you be interested in a PR adding an exponential-backoff
feature as a performance enhancement when running with a larger number of processors?
After #18, it might make sense to provide type aliases for all new lock_api
guards, under the arc_lock
feature flag.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.