aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2022-03-08 10:29:01 +0100
committerStefan Boberg <[email protected]>2022-03-08 10:29:01 +0100
commit2ba53e94d5f3f4afe97ee1fb04e5a0f497e81ae1 (patch)
tree96a4d03b244baed32f8b713ad5249f41372beaa3
parentfixed sentry initialization, added sentry logging support (diff)
downloadzen-2ba53e94d5f3f4afe97ee1fb04e5a0f497e81ae1.tar.xz
zen-2ba53e94d5f3f4afe97ee1fb04e5a0f497e81ae1.zip
clang-format fixes
-rw-r--r--zencore/include/zencore/logging.h2
-rw-r--r--zencore/thread.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/zencore/include/zencore/logging.h b/zencore/include/zencore/logging.h
index 74ab0f81f..7c2deeed7 100644
--- a/zencore/include/zencore/logging.h
+++ b/zencore/include/zencore/logging.h
@@ -54,7 +54,7 @@ struct LogCategory
#define ZEN_DEFINE_LOG_CATEGORY_STATIC(Category, Name) \
static struct LogCategory##Category : public LogCategory \
{ \
- LogCategory##Category() : LogCategory(Name) {} \
+ LogCategory##Category() : LogCategory(Name) {} \
} Category;
#define ZEN_LOG_TRACE(Category, fmtstr, ...) \
diff --git a/zencore/thread.cpp b/zencore/thread.cpp
index 7b1396f5f..c2ecc8d72 100644
--- a/zencore/thread.cpp
+++ b/zencore/thread.cpp
@@ -75,7 +75,7 @@ SetNameInternal(DWORD thread_id, const char* name)
#endif
#if ZEN_PLATFORM_LINUX
-const bool bNoZombieChildren = [] () {
+const bool bNoZombieChildren = []() {
// When a child process exits it is put into a zombie state until the parent
// collects its result. This doesn't fit the Windows-like model that Zen uses
// where there is a less strict familial model and no zombification. Ignoring
@@ -87,7 +87,7 @@ const bool bNoZombieChildren = [] () {
Action.sa_handler = SIG_IGN;
sigaction(SIGCHLD, &Action, nullptr);
return true;
-} ();
+}();
#endif
void
@@ -647,10 +647,10 @@ ProcessHandle::Wait(int TimeoutMs)
timespec SleepTime = {0, SleepMs * 1000 * 1000};
for (int i = 0;; i += SleepMs)
{
-#if ZEN_PLATFORM_MAC
+# if ZEN_PLATFORM_MAC
int WaitState = 0;
waitpid(m_Pid, &WaitState, WNOHANG | WCONTINUED | WUNTRACED);
-#endif
+# endif
if (kill(m_Pid, 0) < 0)
{