AWS IoT FreeRTOS+POSIX
signal.h
Go to the documentation of this file.
1 /*
2  * Amazon FreeRTOS+POSIX V1.0.0
3  * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of
6  * this software and associated documentation files (the "Software"), to deal in
7  * the Software without restriction, including without limitation the rights to
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9  * the Software, and to permit persons to whom the Software is furnished to do so,
10  * subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in all
13  * copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21  *
22  * http://aws.amazon.com/freertos
23  * http://www.FreeRTOS.org
24  */
25 
37 #ifndef _FREERTOS_POSIX_SIGNAL_H_
38 #define _FREERTOS_POSIX_SIGNAL_H_
39 
44 #define SIGEV_NONE 0
45 #define SIGEV_SIGNAL 1
46 #define SIGEV_THREAD 2
52 union sigval
53 {
54  int sival_int;
55  void * sival_ptr;
56 };
57 
61 struct sigevent
62 {
66  void ( * sigev_notify_function )( union sigval );
68 };
69 
70 #endif /* ifndef _FREERTOS_POSIX_SIGNAL_H_ */
Signal value.
Definition: signal.h:52
int sigev_signo
Definition: signal.h:64
void(* sigev_notify_function)(union sigval)
Definition: signal.h:66
int sival_int
Definition: signal.h:54
void * pthread_attr_t
Used to identify a thread attribute object. Enabled/disabled by posixconfigENABLE_PTHREAD_ATTR_T.
Definition: types.h:76
Signal event structure.
Definition: signal.h:61
union sigval sigev_value
Definition: signal.h:65
void * sival_ptr
Definition: signal.h:55
pthread_attr_t * sigev_notify_attributes
Definition: signal.h:67
int sigev_notify
Definition: signal.h:63