Skip to content

Instantly share code, notes, and snippets.

View backes's full-sized avatar

Clemens Backes backes

  • Google
  • Munich, Germany
View GitHub Profile
@backes
backes / pthread_rwlock_with_signals.cc
Created June 10, 2021 10:46
Demonstration of pthread_rwlock_t hangs with signals on Mac
#include <pthread.h>
#include <signal.h>
#include <unistd.h>
#include <atomic>
#include <cstdlib>
#include <vector>
void HandleProfilerSignal(int signal, siginfo_t*, void*) { /* nop */ }