| 1510 | } |
| 1511 | |
| 1512 | inline std::locale* replace_path_locale(std::locale const& loc) |
| 1513 | { |
| 1514 | std::locale* new_p = new std::locale(loc); |
| 1515 | #if !defined(BOOST_FILESYSTEM_SINGLE_THREADED) |
| 1516 | std::locale* p = atomic_ns::atomic_ref< std::locale* >(g_path_locale).exchange(new_p, atomic_ns::memory_order_acq_rel); |
| 1517 | #else |
| 1518 | std::locale* p = g_path_locale; |
| 1519 | g_path_locale = new_p; |
| 1520 | #endif |
| 1521 | if (!p) |
| 1522 | schedule_path_locale_cleanup(); |
| 1523 | return p; |
| 1524 | } |
| 1525 | |
| 1526 | #if defined(_MSC_VER) |
| 1527 |
no test coverage detected