mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Renamed preprocessor #define for consistency.
This commit is contained in:
parent
5110d55f17
commit
591f04ad0f
@ -56,7 +56,7 @@
|
|||||||
#if defined _MSC_VER || defined __CYGWIN__
|
#if defined _MSC_VER || defined __CYGWIN__
|
||||||
# include <lmcons.h>
|
# include <lmcons.h>
|
||||||
extern "C" typedef LONG (WINAPI *t_RtlGetVersion)( PRTL_OSVERSIONINFOW );
|
extern "C" typedef LONG (WINAPI *t_RtlGetVersion)( PRTL_OSVERSIONINFOW );
|
||||||
# define TRACY_USE_INITONCE
|
# define TRACY_USE_INIT_ONCE
|
||||||
#else
|
#else
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
# include <limits.h>
|
# include <limits.h>
|
||||||
@ -72,7 +72,7 @@ extern "C" typedef LONG (WINAPI *t_RtlGetVersion)( PRTL_OSVERSIONINFOW );
|
|||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
#if defined TRACY_USE_INITONCE
|
#if defined TRACY_USE_INIT_ONCE
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
BOOL CALLBACK InitOnceCallback(
|
BOOL CALLBACK InitOnceCallback(
|
||||||
@ -86,20 +86,20 @@ namespace
|
|||||||
|
|
||||||
INIT_ONCE InitOnce = INIT_ONCE_STATIC_INIT;
|
INIT_ONCE InitOnce = INIT_ONCE_STATIC_INIT;
|
||||||
}
|
}
|
||||||
#endif //if defined TRACY_USE_INITONCE
|
#endif //if defined TRACY_USE_INIT_ONCE
|
||||||
|
|
||||||
struct RPMallocInit
|
struct RPMallocInit
|
||||||
{
|
{
|
||||||
RPMallocInit()
|
RPMallocInit()
|
||||||
{
|
{
|
||||||
#if defined TRACY_USE_INITONCE
|
#if defined TRACY_USE_INIT_ONCE
|
||||||
InitOnceExecuteOnce(&InitOnce, InitOnceCallback, nullptr, nullptr);
|
InitOnceExecuteOnce(&InitOnce, InitOnceCallback, nullptr, nullptr);
|
||||||
//We must call rpmalloc_thread_initialize() explicitly here since the InitOnceCallback might
|
//We must call rpmalloc_thread_initialize() explicitly here since the InitOnceCallback might
|
||||||
//not be called on this thread if another thread has executed it earlier.
|
//not be called on this thread if another thread has executed it earlier.
|
||||||
rpmalloc_thread_initialize();
|
rpmalloc_thread_initialize();
|
||||||
#else
|
#else
|
||||||
rpmalloc_initialize();
|
rpmalloc_initialize();
|
||||||
#endif //if defined TRACY_USE_INITONCE
|
#endif //if defined TRACY_USE_INIT_ONCE
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -109,9 +109,9 @@ struct RPMallocThreadInit
|
|||||||
{
|
{
|
||||||
RPMallocThreadInit()
|
RPMallocThreadInit()
|
||||||
{
|
{
|
||||||
#if defined TRACY_USE_INITONCE
|
#if defined TRACY_USE_INIT_ONCE
|
||||||
InitOnceExecuteOnce(&InitOnce, InitOnceCallback, nullptr, nullptr);
|
InitOnceExecuteOnce(&InitOnce, InitOnceCallback, nullptr, nullptr);
|
||||||
#endif //if defined TRACY_USE_INITONCE
|
#endif //if defined TRACY_USE_INIT_ONCE
|
||||||
rpmalloc_thread_initialize();
|
rpmalloc_thread_initialize();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user