MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / detach_sequence

Function detach_sequence

include/BS_thread_pool.hpp:1614–1617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612 */
1613 template <typename T1, typename T2, typename T = common_index_type_t<T1, T2>, typename F>
1614 void detach_sequence(const T1 first_index, const T2 index_after_last, F&& sequence, const priority_t priority = 0)
1615 {
1616 return enqueue_sequence<T, F, void, false>(static_cast<T>(first_index), static_cast<T>(index_after_last), std::forward<F>(sequence), priority);
1617 }
1618
1619 /**
1620 * @brief Submit a function with no arguments and no return value into the task queue, with the specified priority. To submit a function with arguments, enclose it in a lambda expression. Does not return a future, so the user must use `wait()` or some other method to ensure that the task finishes executing, otherwise bad things will happen.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected