Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions easy_profiler_core/current_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ inline profiler::thread_id_t getCurrentThreadId()
return (profiler::thread_id_t)pthread_self();
# endif
#elif defined(__QNX__)
EASY_THREAD_LOCAL static const profiler::thread_id_t _id = (profiler::thread_id_t)gettid();
static EASY_THREAD_LOCAL const profiler::thread_id_t _id = (profiler::thread_id_t)gettid();
return _id;
#else
EASY_THREAD_LOCAL static const profiler::thread_id_t _id = (profiler::thread_id_t)syscall(__NR_gettid);
static EASY_THREAD_LOCAL const profiler::thread_id_t _id = (profiler::thread_id_t)syscall(__NR_gettid);
return _id;
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion easy_profiler_core/include/easy/profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ will end previously opened EASY_BLOCK or EASY_FUNCTION.
\ingroup profiler
*/
# define EASY_THREAD(name)\
EASY_THREAD_LOCAL static const char* EASY_TOKEN_CONCATENATE(unique_profiler_thread_name, __LINE__) = nullptr;\
static EASY_THREAD_LOCAL const char* EASY_TOKEN_CONCATENATE(unique_profiler_thread_name, __LINE__) = nullptr;\
if (!EASY_TOKEN_CONCATENATE(unique_profiler_thread_name, __LINE__))\
EASY_TOKEN_CONCATENATE(unique_profiler_thread_name, __LINE__) = ::profiler::registerThread(name);

Expand Down
4 changes: 2 additions & 2 deletions easy_profiler_core/thread_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ void ThreadStorage::storeBlock(const profiler::Block& block)
MANAGER.addBlockDescriptor(EASY_OPTION_STORAGE_EXPAND_BLOCKS_ON ? profiler::ON : profiler::OFF, EASY_UNIQUE_LINE_ID, "EasyProfiler.ExpandStorage", \
__FILE__, __LINE__, profiler::BlockType::Block, EASY_COLOR_INTERNAL_EVENT));

EASY_THREAD_LOCAL static profiler::timestamp_t beginTime = 0ULL;
EASY_THREAD_LOCAL static profiler::timestamp_t endTime = 0ULL;
static EASY_THREAD_LOCAL profiler::timestamp_t beginTime = 0ULL;
static EASY_THREAD_LOCAL profiler::timestamp_t endTime = 0ULL;
#endif

#if EASY_OPTION_TRUNCATE_LONG_RUNTIME_NAMES != 0
Expand Down