1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Shield functions not supported in EMSCRIPTEN environment

This commit is contained in:
风笛 2024-11-28 14:27:27 +08:00
parent 759b4c3bfe
commit db6ae4ef1b

View File

@ -1467,7 +1467,7 @@ Profiler::Profiler()
m_safeSendBuffer = (char*)tracy_malloc( SafeSendBufferSize );
#ifndef _WIN32
#if !defined(_WIN32) && !defined(__EMSCRIPTEN__)
pipe(m_pipe);
# if defined __APPLE__ || defined BSD
// FreeBSD/XNU don't have F_SETPIPE_SZ, so use the default
@ -1480,7 +1480,7 @@ Profiler::Profiler()
fcntl( m_pipe[1], F_SETFL, O_NONBLOCK );
#endif
#if !defined(TRACY_DELAYED_INIT) || !defined(TRACY_MANUAL_LIFETIME)
#if !defined(__EMSCRIPTEN__) && (!defined(TRACY_DELAYED_INIT) || !defined(TRACY_MANUAL_LIFETIME))
SpawnWorkerThreads();
#endif
}