MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / get_thread_ids

Function get_thread_ids

test/source/tests/async_lock_tests.cpp:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 result<std::pair<uintptr_t, uintptr_t>> get_thread_ids(async_lock& lock, std::shared_ptr<worker_thread_executor> executor) {
43 const auto before_id = concurrencpp::details::thread::get_current_virtual_id();
44 auto lock_guard = co_await lock.lock(executor);
45 const auto after_id = concurrencpp::details::thread::get_current_virtual_id();
46 co_return std::make_pair(before_id, after_id);
47 }
48} // namespace concurrencpp::tests
49
50void concurrencpp::tests::test_async_lock_lock_null_resume_executor() {

Callers 1

Calls 1

lockMethod · 0.80

Tested by

no test coverage detected