MCPcopy Create free account
hub / github.com/Kitware/CMake / InitializeLibUV

Method InitializeLibUV

Source/cmSystemTools.cxx:1396–1413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1394}
1395
1396void cmSystemTools::InitializeLibUV()
1397{
1398#if defined(_WIN32)
1399 // Perform libuv one-time initialization now, and then un-do its
1400 // global _fmode setting so that using libuv does not change the
1401 // default file text/binary mode. See libuv issue 840.
1402 if (uv_loop_t* loop = uv_default_loop()) {
1403 uv_loop_close(loop);
1404 }
1405# ifdef _MSC_VER
1406 _set_fmode(_O_TEXT);
1407# else
1408 _fmode = _O_TEXT;
1409# endif
1410 // Replace libuv's report handler with our own to suppress popups.
1411 cmSystemTools::EnableMSVCDebugHook();
1412#endif
1413}
1414
1415#if defined(_WIN32)
1416# include <random>

Callers

nothing calls this directly

Calls 2

uv_default_loopFunction · 0.85
uv_loop_closeFunction · 0.85

Tested by

no test coverage detected