Comments (3)
Non-blocking means what, though? Can we split this:
- The forward progress guarantee under which it is safe to call the function. (so we can say if it safe to enqueue from a weak agent).
- Whether the value is guaranteed to be ready by the time the caller returns.
We can't really say whether the value is guaranteed to not be ready. If it's safe to call on the agent, but might call it inline, what is that definitionally? It's more of a cost question than a correctness guarantee at that point.
from stdexec.
We need a good answer to the Networking TS requirement for executors that don't block when they submit.
What is minimally required for a good answer? Is it enough, for example, to be able to check whether start_detached
, and by implication also execute
, guarantees not to block the calling thread?
from stdexec.
During the 2021-06-30 meeting, our thinking is that we introduce a way to ask a sender whether calling start_detached
or start
on it will block, or a way to ask if execute
will block.
@griwes thinks we need:
- A sender query that asks whether
start_detached
blocks. - A sender query that asks whether
ensure_started
blocks. - A scheduler query that asks whether
execute
blocks.
My take is that we should have a query for whether start
blocks.
@LeeHowes and @mjgarland point out that to solve this issue, we only need a scheduler query that asks whether execute
blocks.
@griwes thinks it may be simpler for now to just ass a scheduler query that just asks about execute
.
@griwes and @mjgarland suggest that perhaps this query should go in this_thread
.
After group persuasion, I have been convinced to defer consideration of a query for blocking of things like start
until R2, and settle for just a query for whether execute
blocks. This retains the capabilities that P0443 had.
@griwes and I suggest that perhaps we should make this a single query that is parameterized on the operation or things.
from stdexec.
Related Issues (20)
- repeat_n CPU implementation requested HOT 2
- is latest sync_wait() broken? HOT 5
- `just` senders are move/copy constructible but not assignable
- Trivial `sync_wait(just|then)` asserts HOT 3
- when_any question HOT 8
- replace the lock in `exec::__nest_rcvr::__complete` with a CAS loop
- gcc TSAN failure in `tbb_thread_pool`: "data race on vptr" in `task` ctor HOT 6
- make `nvexec::repeat_n` in maxwell example a customization of `exec::repeat_n`
- async_scope set_error calls std::terminate and exception is lost HOT 3
- stdexec doesn't compile on GCC 14 HOT 1
- nested `let_value`s confundles the result domain computation
- MSAN error in repeat_n HOT 6
- io_uring_context tests fail on some systems that don't allow io_uring system calls HOT 1
- Improve bulk implementation for static_thread_pool
- `static_thread_pool` causing long compile times
- Can not destructure a sender with multiple value
- stdexec and P3109 HOT 1
- How to achieve execution agent local variable? HOT 2
- reimplement compile-failed test support in pure cmake
- `io_uring_scheduler` can `throw` in `noexcept` functions causing termination
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 stdexec.