MCPcopy Create free account
hub / github.com/NVIDIA/stdexec / enqueue_

Method enqueue_

include/exec/static_thread_pool.hpp:1234–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1232 }
1233
1234 void enqueue_(task_base* op) const
1235 {
1236 if (thread_index_ < pool_.available_parallelism())
1237 {
1238 pool_.enqueue(*queue_, op, thread_index_);
1239 }
1240 else
1241 {
1242 pool_.enqueue(*queue_, op, constraints_);
1243 }
1244 }
1245
1246 _static_thread_pool& pool_;
1247 remote_queue* queue_;

Callers

nothing calls this directly

Calls 2

available_parallelismMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected