MCPcopy Create free account
hub / github.com/Extra-Creativity/Modern-Cpp-Basics / Work

Function Work

13-Multithreading/code/exception_ptr.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void Work(std::exception_ptr& ptr)
15{
16 try {
17 PKUStudent();
18 THUStudent();
19 }
20 catch (const std::runtime_error&) {
21 ptr = std::current_exception();
22 }
23 return;
24}
25
26void Watch()
27{

Callers

nothing calls this directly

Calls 2

PKUStudentFunction · 0.85
THUStudentFunction · 0.85

Tested by

no test coverage detected