Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
odygrd committed Nov 2, 2023
1 parent 2446487 commit 81b6fed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions examples/example_signal_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ void stack_overflow()
void infinite_loop()
{
/* break out with ctrl+c to test SIGINT handling */
while (1) {};
while (1)
{
};
}

void illegal_instruction() { raise(SIGILL); }
Expand Down Expand Up @@ -55,14 +57,14 @@ int main()
std::vector<std::thread> threads;
for (size_t i = 0; i < 4; ++i)
{
threads.emplace_back(std::thread([]() {

threads.emplace_back(std::thread(
[]()
{
#if defined(_WIN32)
// NOTE: On windows the signal handler must be installed on each new thread
quill::init_signal_handler();
// NOTE: On windows the signal handler must be installed on each new thread
quill::init_signal_handler();
#endif

// sleep for 1 second so all threads are ready
// sleep for 1 second so all threads are ready
std::this_thread::sleep_for(std::chrono::seconds{1});

for (size_t i = 0; i < 10; ++i)
Expand Down
2 changes: 1 addition & 1 deletion quill/include/quill/MacroMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ class MacroMetadata
std::wstring_view _wmessage_format;
#endif
};
} // namespace quill
} // namespace quill

0 comments on commit 81b6fed

Please sign in to comment.