X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=listati%2Fsigevent.h;h=1e0ba121b6cf23cfa02bb38c0cd0bacd72a20675;hp=6b6539a66418758424702fe73986a891d02cf19c;hb=fa15a3f1ecd64efd8440e46d398fd9976abc3d25;hpb=06661f47754a536098afe2b30cb04469918f2fa3 diff --git a/listati/sigevent.h b/listati/sigevent.h index 6b6539a..1e0ba12 100644 --- a/listati/sigevent.h +++ b/listati/sigevent.h @@ -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; };