Add definitions for SIGEV_THREAD.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 21 Feb 2011 23:07:16 +0000 (15:07 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Mon, 21 Feb 2011 23:07:16 +0000 (15:07 -0800)
sys/sys/signal.h

index 6073604..ca5f06b 100644 (file)
@@ -215,14 +215,18 @@ struct sigevent {
        union {
                int     __sigev_signo;  /* Signal number */
                int     __sigev_notify_kqueue;
+               void    *__sigev_notify_attributes;
        } __sigev_u;
        union sigval sigev_value;       /* Signal value */
+       void (*sigev_notify_function)(union sigval);
 };
 #define sigev_signo            __sigev_u.__sigev_signo
+#define sigev_notify_attributes        __sigev_u.__sigev_notify_attributes
 #define sigev_notify_kqueue    __sigev_u.__sigev_notify_kqueue
 
 #define        SIGEV_NONE      0               /* No async notification */
 #define        SIGEV_SIGNAL    1               /* Generate a queued signal */
+#define SIGEV_THREAD   2               /* Call back in a pthread */
 #define SIGEV_KEVENT   3               /* Generate a kevent */
 
 typedef struct __siginfo {