Comments (6)
See ISO C11 standard (I'm using draft N1570), sections 7.26.4.2 and 7.26.4.4
from c11threads.
I'll gladly accept patches or pull requests implementing the equivalent operation on other systems.
from c11threads.
You wanna tell me what that operation is even supposed to do in the first place?
from c11threads.
Thank you. I was just reading the general threads.h definition in that standard.
from c11threads.
I forgot to mention that I filed a bug report with Apple about their lack of timed mutex, hopefully they'll get around to updating their pthreads implementation before Sierra comes out, but I doubt it.
from c11threads.
Just merged a pull request from github user "twistdroach", which works around missing timed mutexes by trylocking in a polling loop and sleeping of a while. This isn't a prefect solution, and I'm still open to suggestions and pull requests of more robust solutions, but it'll have to work for now, so I'm closing this enchancement request.
from c11threads.
Related Issues (14)
- thrd_detach is spelled incorrectly HOT 1
- gcc timespec_get build error HOT 2
- Trap deadlocks
- thrd_sleep should return int HOT 1
- warning: cast to pointer from integer HOT 6
- Duplicated declaration of timespec_get() on MacOSX HOT 2
- error: weak declaration of 'thrd_exit' must be public HOT 2
- <stdint.h> HOT 3
- C11THREADS_TIMEDLOCK_POLL_INTERVAL not defined HOT 1
- Test failure on FreeBSD HOT 5
- Windows threads support HOT 8
- CI HOT 1
- Use feature test macro for transparent drop-in HOT 7
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 c11threads.