src/ex/system_context.cpp
100.0% Lines (3/3)
100.0% List of functions (1/1)
57.1% Branches (4/7)
Functions (1)
Function
Calls
Lines
Branches
Blocks
boost::capy::get_system_context()
:18
0
100.0%
57.1%
–
| Line | Branch | TLA | Hits | Source Code |
|---|---|---|---|---|
| 1 | // | |||
| 2 | // Copyright (c) 2026 Vinnie Falco (vinnie.falco@gmail.com) | |||
| 3 | // | |||
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | |||
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |||
| 6 | // | |||
| 7 | // Official repository: https://github.com/cppalliance/capy | |||
| 8 | // | |||
| 9 | ||||
| 10 | #include <boost/capy/ex/system_context.hpp> | |||
| 11 | ||||
| 12 | #include <mutex> | |||
| 13 | ||||
| 14 | namespace boost { | |||
| 15 | namespace capy { | |||
| 16 | ||||
| 17 | auto | |||
| 18 | 8x | get_system_context() -> thread_pool& | ||
| 19 | { | |||
| 20 |
4/7✓ Branch 0 taken 1 time.
✓ Branch 1 taken 7 times.
✓ Branch 3 taken 1 time.
✗ Branch 4 not taken.
✓ Branch 7 taken 1 time.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
|
8x | static thread_pool ctx; | |
| 21 | 8x | return ctx; | ||
| 22 | } | |||
| 23 | ||||
| 24 | } // namespace capy | |||
| 25 | } // namespace boost | |||
| 26 |