100.00% Lines (3/3)
100.00% Functions (1/1)
| TLA | Baseline | Branch | ||||||
|---|---|---|---|---|---|---|---|---|
| Line | Hits | Code | Line | Hits | Code | |||
| 1 | // | 1 | // | |||||
| 2 | // Copyright (c) 2026 Vinnie Falco (vinnie.falco@gmail.com) | 2 | // Copyright (c) 2026 Vinnie Falco (vinnie.falco@gmail.com) | |||||
| 3 | // | 3 | // | |||||
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | 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) | 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |||||
| 6 | // | 6 | // | |||||
| 7 | // Official repository: https://github.com/cppalliance/capy | 7 | // Official repository: https://github.com/cppalliance/capy | |||||
| 8 | // | 8 | // | |||||
| 9 | 9 | |||||||
| 10 | #include <boost/capy/ex/system_context.hpp> | 10 | #include <boost/capy/ex/system_context.hpp> | |||||
| 11 | 11 | |||||||
| 12 | #include <mutex> | 12 | #include <mutex> | |||||
| 13 | 13 | |||||||
| 14 | namespace boost { | 14 | namespace boost { | |||||
| 15 | namespace capy { | 15 | namespace capy { | |||||
| 16 | 16 | |||||||
| 17 | auto | 17 | auto | |||||
| HITCBC | 18 | 8 | get_system_context() -> thread_pool& | 18 | 8 | get_system_context() -> thread_pool& | ||
| 19 | { | 19 | { | |||||
| HITCBC | 20 | 8 | static thread_pool ctx; | 20 | 8 | static thread_pool ctx; | ||
| HITCBC | 21 | 8 | return ctx; | 21 | 8 | return ctx; | ||
| 22 | } | 22 | } | |||||
| 23 | 23 | |||||||
| 24 | } // namespace capy | 24 | } // namespace capy | |||||
| 25 | } // namespace boost | 25 | } // namespace boost | |||||