Varie correzioni, completata revisione capitolo sull'I/O su file
[gapil.git] / listati / sigevent.h
index 6b6539a66418758424702fe73986a891d02cf19c..1e0ba121b6cf23cfa02bb38c0cd0bacd72a20675 100644 (file)
@@ -1,8 +1,12 @@
-struct sigevent
-{
-    sigval_t sigev_value;
-    int sigev_signo;
-    int sigev_notify;
-    void (*sigev_notify_function)(sigval_t);
-    pthread_attr_t *sigev_notify_attributes;
+struct sigevent {
+    int          sigev_notify;    /* Notification method */
+    int          sigev_signo;     /* Timer expiration signal */
+    union sigval sigev_value;     /* Value accompanying signal or
+                                     passed to thread function */
+    /* Function used for thread notifications (SIGEV_THREAD) */
+    void         (*sigev_notify_function) (union sigval);                   
+    /* Attributes for notification thread (SIGEV_THREAD) */
+    void         *sigev_notify_attributes;
+    /* ID of thread to signal (SIGEV_THREAD_ID) */
+    pid_t        sigev_notify_thread_id;
 };