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

Method pr_task

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

* @brief Construct a new task with an assigned priority. * * @param task_ The task. * @param priority_ The desired priority. */

Source from the content-addressed store, hash-verified

415 * @param priority_ The desired priority.
416 */
417 explicit pr_task(task_t&& task_, const priority_t priority_ = 0) noexcept(std::is_nothrow_move_constructible_v<task_t>) : task(std::move(task_)), priority(priority_) {}
418
419 /**
420 * @brief Compare the priority of two tasks.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected