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

Function check_shared_ptr_all

tests/BS_thread_pool_test.cpp:2687–2695  ·  view source on GitHub ↗

* @brief Check, for all member functions which parallelize loops or sequences of tasks, that if a task that captures a shared pointer is submitted, the pointer is correctly shared between all the iterations of the task. */

Source from the content-addressed store, hash-verified

2685 * @brief Check, for all member functions which parallelize loops or sequences of tasks, that if a task that captures a shared pointer is submitted, the pointer is correctly shared between all the iterations of the task.
2686 */
2687void check_shared_ptr_all()
2688{
2689 check_shared_ptr("detach_blocks()");
2690 check_shared_ptr("detach_loop()");
2691 check_shared_ptr("detach_sequence()");
2692 check_shared_ptr("submit_blocks()");
2693 check_shared_ptr("submit_loop()");
2694 check_shared_ptr("submit_sequence()");
2695}
2696
2697/**
2698 * @brief Check that a task is destructed immediately after it executes, and therefore does not artificially extend the lifetime of any captured objects.

Callers 1

mainFunction · 0.85

Calls 1

check_shared_ptrFunction · 0.85

Tested by

no test coverage detected