sigevent.md 5.4 KB
Newer Older
W
wenjun 已提交
1 2
# sigevent<a name="ZH-CN_TOPIC_0000001054879580"></a>

[
[yang] 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15
-   [Overview](#section2006269069165637)
-   [Summary](#section222431250165637)
-   [Data Fields](#pub-attribs)
-   [Details](#section198648129165637)
-   [Field](#section1170030040165637)
-   [char\_\_pad](#afefb1d2489fc37345bc4923c99d667c8)
-   [sigev\_notify](#aae9a19d879c38e0c4e8a9bf738c5081e)
-   [sigev\_notify\_attributes](#a5a687d2092b237d76eb08e2d46a5115f)
-   [sigev\_notify\_function](#ac3d9f1ee55173d6da3ff2929c7215061)
-   [sigev\_signo](#a5c645ec1d12bb46efc3f4097c52b665d)
-   [sigev\_value](#a757af1e34b87e3f66bbc08c514017a2c)

## **Overview**<a name="section2006269069165637"></a>
W
wenjun 已提交
16 17 18 19 20 21 22 23 24

**Related Modules:**

[IPC](IPC.md)

**Description:**

Describes asynchronous notifications. 

[
[yang] 已提交
25
## **Summary**<a name="section222431250165637"></a>
W
wenjun 已提交
26 27 28

## Data Fields<a name="pub-attribs"></a>

[
[yang] 已提交
29 30
<a name="table832710157165637"></a>
<table><thead align="left"><tr id="row1757111619165637"><th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.1"><p id="p1299000159165637"><a name="p1299000159165637"></a><a name="p1299000159165637"></a>Variable Name</p>
W
wenjun 已提交
31
</th>
[
[yang] 已提交
32
<th class="cellrowborder" valign="top" width="50%" id="mcps1.1.3.1.2"><p id="p1650180054165637"><a name="p1650180054165637"></a><a name="p1650180054165637"></a>Description</p>
W
wenjun 已提交
33 34 35
</th>
</tr>
</thead>
[
[yang] 已提交
36
<tbody><tr id="row1649837995165637"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p1496847711165637"><a name="p1496847711165637"></a><a name="p1496847711165637"></a><a href="sigevent.md#a757af1e34b87e3f66bbc08c514017a2c">sigev_value</a></p>
W
wenjun 已提交
37
</td>
[
[yang] 已提交
38
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p983518053165637"><a name="p983518053165637"></a><a name="p983518053165637"></a>union <a href="sigval.md">sigval</a> </p>
W
wenjun 已提交
39 40
</td>
</tr>
[
[yang] 已提交
41
<tr id="row489336337165637"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p124744550165637"><a name="p124744550165637"></a><a name="p124744550165637"></a><a href="sigevent.md#a5c645ec1d12bb46efc3f4097c52b665d">sigev_signo</a></p>
W
wenjun 已提交
42
</td>
[
[yang] 已提交
43
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1478802512165637"><a name="p1478802512165637"></a><a name="p1478802512165637"></a>int </p>
W
wenjun 已提交
44 45
</td>
</tr>
[
[yang] 已提交
46
<tr id="row57617285165637"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p977470868165637"><a name="p977470868165637"></a><a name="p977470868165637"></a><a href="sigevent.md#aae9a19d879c38e0c4e8a9bf738c5081e">sigev_notify</a></p>
W
wenjun 已提交
47
</td>
[
[yang] 已提交
48
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1301851865165637"><a name="p1301851865165637"></a><a name="p1301851865165637"></a>int </p>
W
wenjun 已提交
49 50
</td>
</tr>
[
[yang] 已提交
51
<tr id="row2121511506165637"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p852280861165637"><a name="p852280861165637"></a><a name="p852280861165637"></a><a href="sigevent.md#ac3d9f1ee55173d6da3ff2929c7215061">sigev_notify_function</a> )(unionsigval)</p>
W
wenjun 已提交
52
</td>
[
[yang] 已提交
53
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p1134747513165637"><a name="p1134747513165637"></a><a name="p1134747513165637"></a>void(* </p>
W
wenjun 已提交
54 55
</td>
</tr>
[
[yang] 已提交
56
<tr id="row1203679962165637"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p992247257165637"><a name="p992247257165637"></a><a name="p992247257165637"></a><a href="sigevent.md#a5a687d2092b237d76eb08e2d46a5115f">sigev_notify_attributes</a></p>
W
wenjun 已提交
57
</td>
[
[yang] 已提交
58
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 "><p id="p879292224165637"><a name="p879292224165637"></a><a name="p879292224165637"></a><a href="UTILS.md#gac8ee4471bbc35deb7589ac3615deb486">pthread_attr_t</a> * </p>
W
wenjun 已提交
59 60
</td>
</tr>
[
[yang] 已提交
61
<tr id="row1601726302165637"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.1 "><p id="p2098513711165637"><a name="p2098513711165637"></a><a name="p2098513711165637"></a><a href="sigevent.md#afefb1d2489fc37345bc4923c99d667c8">char__pad</a> [56-3 *sizeof(long)]</p>
W
wenjun 已提交
62
</td>
[
[yang] 已提交
63
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.1.3.1.2 ">&nbsp;&nbsp;</td>
W
wenjun 已提交
64 65 66 67
</tr>
</tbody>
</table>

[
[yang] 已提交
68
## **Details**<a name="section198648129165637"></a>
W
wenjun 已提交
69

[
[yang] 已提交
70
## **Field **<a name="section1170030040165637"></a>
W
wenjun 已提交
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94

## char\_\_pad<a name="afefb1d2489fc37345bc4923c99d667c8"></a>

```
sigevent::char__pad[56-3 *sizeof(long)]
```

 **Description:**

A reserved field 

## sigev\_notify<a name="aae9a19d879c38e0c4e8a9bf738c5081e"></a>

```
int sigevent::sigev_notify
```

 **Description:**

Notification method, which can be set to  [SIGEV\_SIGNAL](IPC.md#ga06d5881eeb84e6ac35f5b801c380dbb6),  [SIGEV\_NONE](IPC.md#gaced9a66610d9d61756999ce4f103740e), or  [SIGEV\_THREAD](IPC.md#ga29ccb6a17fa90a1357b478f62af7fca0) 

## sigev\_notify\_attributes<a name="a5a687d2092b237d76eb08e2d46a5115f"></a>

```
[
[yang] 已提交
95
[pthread_attr_t](UTILS.md#gac8ee4471bbc35deb7589ac3615deb486)* sigevent::sigev_notify_attributes
W
wenjun 已提交
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
```

 **Description:**

Attributes for notification thread 

## sigev\_notify\_function<a name="ac3d9f1ee55173d6da3ff2929c7215061"></a>

```
void(* sigevent::sigev_notify_function) (unionsigval)
```

 **Description:**

Function used for thread notification 

## sigev\_signo<a name="a5c645ec1d12bb46efc3f4097c52b665d"></a>

```
int sigevent::sigev_signo
```

 **Description:**

Notification signal 

## sigev\_value<a name="a757af1e34b87e3f66bbc08c514017a2c"></a>

```
union [sigval](sigval.md) sigevent::sigev_value
```

 **Description:**

Data passed with notification