signal.h: Don't include pthread.h to avoid the mutual reference
let's use pthread_attr_s directly Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
2c972bd402
commit
34ac8b2e07
@ -31,10 +31,6 @@
|
||||
#include <stdint.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef CONFIG_SIG_EVTHREAD
|
||||
# include <pthread.h> /* Needed for pthread_attr_t, includes this file */
|
||||
#endif
|
||||
|
||||
/********************************************************************************
|
||||
* Pre-processor Definitions
|
||||
********************************************************************************/
|
||||
@ -356,8 +352,8 @@ struct sigevent
|
||||
union sigval sigev_value; /* Data passed with notification */
|
||||
|
||||
#ifdef CONFIG_SIG_EVTHREAD
|
||||
sigev_notify_function_t sigev_notify_function; /* Notification function */
|
||||
FAR pthread_attr_t *sigev_notify_attributes; /* Notification attributes (not used) */
|
||||
sigev_notify_function_t sigev_notify_function; /* Notification function */
|
||||
FAR struct pthread_attr_s *sigev_notify_attributes; /* Notification attributes (not used) */
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user