Пример #1
0
static void *
sigusr2_thread_function (void *unused)
{
  incr_thread_count ();
  while (!ready)
    usleep (100);
  /* pthread_kill (pthread_self (), SIGUSR2); - manually injected by gdb */
}
Пример #2
0
static void *
sigusr1_thread_function (void *unused)
{
  incr_thread_count ();
  while (!ready)
    usleep (100);
  pthread_kill (pthread_self (), SIGUSR1);
}
void *
forever_pthread (void *unused)
{
  incr_thread_count ();
  noreturn ();
}
void *
thread_entry (void *unused)
{
  incr_thread_count ();
  noreturn ();
}