Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Extra-Creativity/Modern-Cpp-Basics
/ Watch
Function
Watch
13-Multithreading/code/exception_ptr.cpp:26–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
24
}
25
26
void Watch()
27
{
28
std::exception_ptr ptr;
29
// join immediately.
30
{std::jthread _{ Work, std::ref(ptr) }; }
31
if (ptr)
32
std::rethrow_exception(ptr);
33
std::cout <<
"All students over.\n"
;
34
}
35
36
int main()
37
{
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected