Comments (2)
Hi, it's implemented using atomic ops from core.atomic
.
For example:
during/source/during/package.d
Line 1260 in fda8724
during/source/during/package.d
Line 1272 in fda8724
At first io_uring haven't used atomics but some custom asm implementation: see axboe/liburing@b9c0bf7
and that was too much magic for me so I've got inspired from some other wrapper implementations and went with core.atomic
.
But haven't checked that afterwards so there might be some differences. Although we're using it in production (sockets + file ops) and have problems only with some kernel versions as fixes takes pretty long to get to distribution kernels and io_uring development is still way too active.
from during.
Thx, good to know
from during.
Related Issues (8)
- update to actual version HOT 3
- how to implement flow-control HOT 5
- EFAULT when using prepWrite with heap allocated buffer HOT 3
- Add helper to probe if operation is supported
- prepCancel should allow to specify a user_data field HOT 1
- remove static assert "during is not available on this system" HOT 1
- Missing interface to set the SetupParameters
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 during.