dpw / skinny-mutex Goto Github PK
View Code? Open in Web Editor NEWLow-memory-footprint mutexes for pthreads
License: MIT License
Low-memory-footprint mutexes for pthreads
License: MIT License
This comment in cond_wait_cleanup didn't make sense to me:
/* Cancellation of pthread_cond_wait re-acquires fat->mutex,
* and we have it pinned, so we can access the fat mutex
* directly from the skinny mutex for once. */
So I decided to use a more brutal test for the wait cancellation, to see if it would pop (which it did). I pushed the test I made, and suggested fix (and comments as to why I believe the way you had it would fail) - and you can see the diff here:
master...december1981:master
(You'll note line 450: "assert(!fat->held);" in fat_mutex_release was also detected as a false positive).
Not making a pull request, as the changes were hacked together quickly to assist you in exposing the issue/working toward a proper fix.
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.