MCPcopy Create free account
hub / github.com/boostorg/filesystem / replace_path_locale

Function replace_path_locale

src/path.cpp:1512–1524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1510}
1511
1512inline 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

Callers 1

imbueMethod · 0.85

Calls 1

Tested by

no test coverage detected