-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
133 lines (111 loc) · 7.08 KB
/
index.html
File metadata and controls
133 lines (111 loc) · 7.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
132
133
<!DOCTYPE html>
<html lang="en">
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="utf-8">
<title>Libev 中文手册 | 用C语言编写的高性能事件驱动库 | Libevent | Libuv | 高并发 | 高性能 | 轻量级 | 低消耗 </title>
<meta name="description" content="使用C语言编写的高性能事件驱动库 | Libevent | Libuv | 高并发 | 高性能 | 跨平台">
<meta name="keywords" content="Libev,Libevent,Libuv,高性能,高并发,轻量级,跨平台">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- fonts -->
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Ubuntu:300,400,500,600,700" rel="stylesheet">
<!-- stylesheets -->
<link rel="stylesheet" href="/style/doc.css">
<!-- favicon -->
<link rel="icon" href="/images/favicon.ico">
</head>
<body>
<script>window.__INITIAL_STATE__ = {"page":{"title":"用C语言编写的高性能事件驱动库 | Libevent | Libuv | 高并发 | 高性能 | 轻量级 | 低消耗","path":"index.html"},"data":{"navigation":{"logo":{"text":"Libev 中文手册","type":"link","path":"/"},"main":[{"text":"一、介绍","type":"label"},{"text":"下载安装","type":"link","path":"base/install.html"},{"text":"使用示例","type":"link","path":"base/used.html"},{"text":"二、入门","type":"label"},{"text":"ev_loop","type":"link","path":"api/loop.html"},{"text":"ev_io","type":"link","path":"api/io.html"},{"text":"ev_timer","type":"link","path":"api/timer.html"},{"text":"ev_signal","type":"link","path":"api/signal.html"},{"text":"ev_child","type":"link","path":"api/child.html"},{"text":"ev_idle","type":"link","path":"api/idle.html"},{"text":"ev_stat","type":"link","path":"api/stat.html"},{"text":"三、其它","type":"label"},{"text":"内存检查","type":"link","path":"other/memcheck.html"},{"text":"算法复杂度","type":"link","path":"other/algorithm.html"},{"text":"编译警告","type":"link","path":"other/compiler.html"},{"text":"线程安全","type":"link","path":"other/threads.html"},{"text":"内置的宏","type":"link","path":"other/micro.html"}]}},"config":{"timezone":"UTC","root":"/","time_format":"HH:mm:ss","theme":"../node_modules/hexo-theme-doc","theme_config":{"swagger_ui":{"version":2,"permalinks":true,"api_explorer":true,"download":"Download specification","show_extensions":false,"deep_linking":true,"display_operation_id":false,"doc_expansion":"none"},"search":{"skip":false,"background":false,"route":"/lunr.json"},"favicon":"images/favicon.ico"}}}</script>
<div id="react-navigation-root"><div class="doc-navigation" data-reactroot><nav class="doc-navbar"><a href="/" class="doc-navbar__logo"><img src="/images/logo.png" class="doc-navbar__logo__img"><span class="doc-navbar__logo__text">Libev 中文手册</span></a><i class="dc-icon dc-icon--close dc-icon--interactive doc-sidebar-close doc-navbar__sidebar-close doc-navbar__sidebar-close--desktop"></i><i class="dc-icon dc-icon--menu dc-icon--interactive doc-sidebar-toggle doc-navbar__sidebar-toggle"></i></nav><nav class="doc-sidebar"><div class="doc-sidebar__vertical-menu"><i class="dc-icon dc-icon--menu dc-icon--interactive doc-sidebar-toggle doc-sidebar-toggle--primary doc-sidebar__vertical-menu__item"></i><i class="dc-icon dc-icon--search dc-icon--interactive doc-sidebar__vertical-menu__item doc-sidebar__vertical-menu__item--primary"></i></div><div class="doc-sidebar-content"><div class="doc-sidebar__search-form"></div><ul class="doc-sidebar-list"></ul></div></nav></div></div>
<div class="doc-content">
<div class="dc-page">
<div class="dc-card">
<div id="react-search-results-root"></div>
<div id="page-content" class="doc-formatting">
<h1 id="发展简介"><a href="#发展简介" class="headerlink" title="发展简介"></a>发展简介</h1><p> <code>Libev</code>是一个全功能和高性能的事件循环库, 由<code>Marc Lehmann</code>和<code>Emanuele Giaquinta</code>创建. 它以<code>GPLv2</code>协议进行发布, 并且在目前为止的多个行业内广泛被应用在各类生成环境中.</p>
<p> <code>GVPE</code>虚拟专用以太网、<code>rxvt-unicode</code>、<code>auditd</code>、<code>Deliantra MORPG</code>服务器和客户端以及许多其他程序. 甚至鼎鼎大名的<code>node.js</code>也曾经在早期的版本内嵌入并使用<code>Libev</code>, 后来才使用自行编写的<code>Libuv</code>.</p>
<h1 id="特性展示"><a href="#特性展示" class="headerlink" title="特性展示"></a>特性展示</h1><table>
<thead>
<tr>
<th style="text-align:center">特性</th>
<th style="text-align:center">Libevent</th>
<th style="text-align:center">Libev</th>
<th style="text-align:center">Libuv</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">I/O监控</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
</tr>
<tr>
<td style="text-align:center">相对计时器</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
</tr>
<tr>
<td style="text-align:center">绝对定时器</td>
<td style="text-align:center">×</td>
<td style="text-align:center">√</td>
<td style="text-align:center">×</td>
</tr>
<tr>
<td style="text-align:center">fork检查</td>
<td style="text-align:center">×</td>
<td style="text-align:center">√</td>
<td style="text-align:center">×</td>
</tr>
<tr>
<td style="text-align:center">loop清理</td>
<td style="text-align:center">×</td>
<td style="text-align:center">√</td>
<td style="text-align:center">×</td>
</tr>
<tr>
<td style="text-align:center">文件监控</td>
<td style="text-align:center">×</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
</tr>
<tr>
<td style="text-align:center">进程管理</td>
<td style="text-align:center">×</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
</tr>
<tr>
<td style="text-align:center">线程通知</td>
<td style="text-align:center">×</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
</tr>
<tr>
<td style="text-align:center">空闲事件</td>
<td style="text-align:center">×</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
</tr>
<tr>
<td style="text-align:center">信号管理</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
<td style="text-align:center">√</td>
</tr>
</tbody>
</table>
<h1 id="译者"><a href="#译者" class="headerlink" title="译者"></a>译者</h1><p> 如有错误, 请联系<a href="https://github.com/CandyMi" target="_blank" rel="noopener">水果糖的小铺子</a>修改.</p>
<div id="react-support-footer-root"></div>
</div>
</div>
</div>
</div>
<!-- js vendors -->
<script src="//code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lunr.js/2.1.0/lunr.min.js"></script>
<!-- js source -->
<script src="/script/doc.js"></script>
</body>
</html>