Skip to content

Commit

Permalink
Update LogUtils.hpp
Browse files Browse the repository at this point in the history
Signed-off-by: quic-zhanweiw <[email protected]>
  • Loading branch information
quic-zhanweiw authored Jul 30, 2024
1 parent 9ba18b8 commit 14e063e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Log/LogUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
#include <cstdio>
#include <mutex>
#include <string>
#include <windows.h> // zw.

#ifdef _WIN32
#include <windows.h> // zw.
#endif
#include "QnnLog.h"

namespace qnn {
Expand All @@ -22,9 +23,11 @@ namespace utils {

void logStdoutCallback(const char* fmt, QnnLog_Level_t level, uint64_t timestamp, va_list argp);
void logCreateLock();
// static std::mutex sg_logUtilMutex; // zw.
#ifdef _WIN32
static HANDLE sg_logUtilMutex = nullptr; // zw: We need share the lock between processes.

#else
static std::mutex sg_logUtilMutex;
#endif
} // namespace utils
} // namespace log
} // namespace qnn

0 comments on commit 14e063e

Please sign in to comment.