title: pthreads SIGEV_THREAD and async-safe function calls
body: <p>Having trouble tracking down answer to usage of SIGEV_THREAD...</p>
  
  <p>When one sets SIGEV_THREAD as the notify method in sigevent struct, is it correct to assume that async-signal-safe functions must still be used within the notify_function to be invoked as the handler?</p>
  
  <p>Also - is it correct to assume the thread is run as "detached"?</p>
  
  <p>For example</p>
  
  <p>notify thread</p>
  
  <pre><code>void my_thread(union sigval my_data)
  {
      // is this ok or not (two non async-signal-safe functions)?
      printf("in the notify function\n");
      mq_send();
  }
  </code></pre>
  
  <p>main function</p>
  
  <pre><code>(...)
  se.sigev_notify = SIGEV_THREAD;
  se.sigev_value.sival_ptr = &amp;my_data;
  se.sigev_notify_function = my_thread;
  se.sigev_notify_attributes = NULL;
  (...)
  </code></pre>
  
  <p>Please provide a reference if possible.</p>