Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wendajiang committed Jul 11, 2023
1 parent 65a769f commit 0837331
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@
#endif
#endif // defined(BACKWARD_SYSTEM_DARWIN)

#include <mutex>
#if defined(BACKWARD_SYSTEM_WINDOWS)

#include <condition_variable>
#include <mutex>
#include <thread>

#include <basetsd.h>
Expand Down Expand Up @@ -4287,12 +4287,14 @@ class SignalHandling {
private:
details::handle<char *> _stack_content;
bool _loaded;
static std::recursive_mutex _mu;

#ifdef __GNUC__
__attribute__((noreturn))
#endif
static void
sig_handler(int signo, siginfo_t *info, void *_ctx) {
std::lock_guard lk(_mu);
handleSignal(signo, info, _ctx);

// try to forward the signal.
Expand Down

0 comments on commit 0837331

Please sign in to comment.