Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricPengShuai/Interview
/ functions
Functions
682 in github.com/EricPengShuai/Interview
⨍
Functions
682
◇
Types & classes
284
↓ 28 callers
Method
push_back
base_code/template.cpp:235
↓ 21 callers
Method
push
practice/itemPool.cpp:24
↓ 16 callers
Method
size
base_code/template.cpp:271
↓ 14 callers
Method
pop
practice/itemPool.cpp:31
↓ 12 callers
Method
top
base_code/template.cpp:90
↓ 10 callers
Method
emplace_back
base_code/template.cpp:247
↓ 10 callers
Method
empty
practice/itemPool.cpp:48
↓ 9 callers
Method
put
practice/producer_consumer.cpp:14
↓ 8 callers
Method
ShowTime
base_code/overload.cpp:48
↓ 7 callers
Function
dfs
review/code/mihoyo_0319_1_dfs.cpp:5
↓ 6 callers
Function
modfd
Linux/ch15/15-5http_conn.cpp:45
↓ 6 callers
Function
removefd
Linux/ch15/15-5http_conn.cpp:39
↓ 6 callers
Method
unlock
Linux/ch14/14-2locker.h:55
↓ 5 callers
Function
addfd
Linux/ch13/13-4shm_talk_server.cpp:52
↓ 5 callers
Function
addsig
Linux/ch13/13-4shm_talk_server.cpp:69
↓ 5 callers
Function
close_conn
Linux/ch16/16-4stress_client.cpp:102
↓ 5 callers
Method
construct
base_code/template.cpp:139
↓ 5 callers
Method
foo
C++2.0/unique_ptr.cpp:8
↓ 5 callers
Method
get
practice/producer_consumer.cpp:32
↓ 5 callers
Function
modfd
修改文件描述符,重置socket上的EPOLLONESHOT事件,以确保下一次可读时,EPOLLIN事件能被触发
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:49
↓ 5 callers
Method
size
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:103
↓ 5 callers
Method
unlock
Linux/nowcoder/5-WebServer/webserver/locker.h:28
↓ 5 callers
Method
wait
Linux/ch14/14-2locker.h:23
↓ 4 callers
Function
addfd
Linux/ch15/15-1processpool.h:88
↓ 4 callers
Function
addsig
Linux/ch15/15-1processpool.h:112
↓ 4 callers
Function
addsig
设置信号的处理函数
Linux/ch10/10-1unievent.cpp:47
↓ 4 callers
Method
allocate
base_code/template.cpp:129
↓ 4 callers
Method
destroy
base_code/template.cpp:150
↓ 4 callers
Method
empty
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:135
↓ 4 callers
Method
front
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:91
↓ 4 callers
Method
front
practice/itemPool.cpp:43
↓ 4 callers
Method
lock
Linux/ch14/14-2locker.h:51
↓ 4 callers
Function
pv
op 为 -1 时执行 P 操作,为 1 时执行 V 操作
Linux/ch13/13-3sem.cpp:16
↓ 4 callers
Function
showVector
STL/vector.cpp:6
↓ 4 callers
Method
wait
等待信号量
Linux/nowcoder/5-WebServer/webserver/locker.h:98
↓ 3 callers
Function
Print
STL/list.cpp:8
↓ 3 callers
Function
Print_f
STL/list.cpp:17
↓ 3 callers
Function
addfd
Linux/ch10/10-1unievent.cpp:27
↓ 3 callers
Function
addfd
Linux/ch11/11-3nonactive_conn.cpp:33
↓ 3 callers
Function
addfd
向epoll中添加需要监听的文件描述符
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:26
↓ 3 callers
Function
addfd
向 epollfd 指定的内核注册表中注册 fd
Linux/ch9/9-8multi_port.cpp:30
↓ 3 callers
Function
addfd
将文件描述符 fd 上的 EPOLLIN 注册到 epoll 指定的内核事件表 epollfd
Linux/ch9/9-3mtlt.cpp:28
↓ 3 callers
Function
addsig
添加信号捕捉
Linux/nowcoder/5-WebServer/webserver/main.cpp:31
↓ 3 callers
Method
close_conn
Linux/ch15/15-5http_conn.cpp:56
↓ 3 callers
Method
close_conn
关闭连接
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:63
↓ 3 callers
Method
deallocate
base_code/template.cpp:134
↓ 3 callers
Method
lock
Linux/nowcoder/5-WebServer/webserver/locker.h:24
↓ 3 callers
Function
other
base_code/static.cpp:26
↓ 3 callers
Function
parse_content
分析HTTP请求的入口函数 */
Linux/ch8/8-3httpparser.cpp:168
↓ 3 callers
Function
parse_headers
分析头部字段 */
Linux/ch8/8-3httpparser.cpp:146
↓ 3 callers
Function
parse_line
从状态机:解析一行的内容 checked_index 是当前正在分析字节的下标,read_index 是 buffer 尾部的下一个字节 逐个检查 buffer[checked_index...read_index-1] 字节
Linux/ch8/8-3httpparser.cpp:54
↓ 3 callers
Method
push_back
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:115
↓ 3 callers
Function
seek
review/code/mihoyo_0319_1_uf.cpp:12
↓ 3 callers
Function
showContainer
C++2.0/bind_function.cpp:43
↓ 3 callers
Function
temperature
practice/exception.cpp:8
↓ 3 callers
Function
trimLeftTrailingSpaces
去掉左空白字符串
memo/treenode.cpp:42
↓ 3 callers
Function
usage
Linux/nowcoder/5-WebServer/webserver/test_presure/webbench-1.5/webbench.c:82
↓ 2 callers
Function
LTrim
STL/string.cpp:31
↓ 2 callers
Function
RTrim
STL/string.cpp:36
↓ 2 callers
Function
Socket
Linux/nowcoder/5-WebServer/webserver/test_presure/webbench-1.5/socket.c:29
↓ 2 callers
Method
addRef
C++2.0/smart_ptr.cpp:16
↓ 2 callers
Function
addfd
Linux/ch15/15-5http_conn.cpp:25
↓ 2 callers
Function
addfd
将 fd 上的 EPOLLIN 和 EPOLLET 事件注册到 epollfd 指示的 epoll 内核事件表中
Linux/ch9/9-4oneshot.cpp:32
↓ 2 callers
Function
addsig
Linux/ch11/11-3nonactive_conn.cpp:50
↓ 2 callers
Function
benchcore
Linux/nowcoder/5-WebServer/webserver/test_presure/webbench-1.5/webbench.c:398
↓ 2 callers
Function
cb_func
定时器回调函数,它删除非活动连接 socket 上的注册事件,并关闭之
Linux/ch11/11-3nonactive_conn.cpp:69
↓ 2 callers
Function
compare
base_code/template.cpp:12
↓ 2 callers
Function
compare
STL/functor.cpp:35
↓ 2 callers
Method
delRef
C++2.0/smart_ptr.cpp:17
↓ 2 callers
Method
del_timer
Linux/ch11/11-6time_heap.h:112
↓ 2 callers
Method
f
base_code/using_derived.cpp:10
↓ 2 callers
Method
f
base_code/c++_polymorphism.cpp:7
↓ 2 callers
Method
init
Linux/ch15/15-5http_conn.cpp:66
↓ 2 callers
Method
pop_back
base_code/template.cpp:258
↓ 2 callers
Function
priority
判断运算符的优先级
practice/calExp.cpp:11
↓ 2 callers
Method
push_front
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:125
↓ 2 callers
Method
run
Linux/ch15/15-3threadpool.h:106
↓ 2 callers
Function
run_child
子进程运行的函数,参数 idx 指出该子进程处理的客户连接的编号, users 是保存所有客户连接数据的数组,share_mem 指出共享内存的起始地址
Linux/ch13/13-4shm_talk_server.cpp:101
↓ 2 callers
Function
setnonblocking
Linux/ch13/13-4shm_talk_server.cpp:44
↓ 2 callers
Function
setnonblocking
Linux/ch15/15-1processpool.h:80
↓ 2 callers
Function
setnonblocking
Linux/ch10/10-1unievent.cpp:19
↓ 2 callers
Function
setnonblocking
Linux/ch11/11-3nonactive_conn.cpp:25
↓ 2 callers
Function
setnonblocking
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:17
↓ 2 callers
Function
solve
review/code/mihoyo_0319_1_uf.cpp:21
↓ 2 callers
Function
split
review/code/mihoyo_0319_2.cpp:4
↓ 2 callers
Function
stringToListNode
注意构造链表的方式
memo/listnode.cpp:77
↓ 2 callers
Function
stringToTreeNode
字符串转二叉树
memo/treenode.cpp:58
↓ 2 callers
Method
test2
error! 不能访问 private 成员
base_code/derived_base.cpp:41
↓ 2 callers
Method
who
base_code/inline.cpp:7
↓ 2 callers
Method
who
base_code/virtual_inline.cpp:52
↓ 2 callers
Method
write
写HTTP响应 */
Linux/ch15/15-5http_conn.cpp:360
↓ 1 callers
Method
AsyncWrite_
Linux/nowcoder/5-WebServer/asyncLog/log.cpp:174
↓ 1 callers
Function
Base
base_code/struct_func.c:18
↓ 1 callers
Method
Close
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:69
↓ 1 callers
Function
Trim
STL/string.cpp:41
↓ 1 callers
Function
_hash
C++2.0/variadic.cpp:16
↓ 1 callers
Method
add_timer
Linux/ch11/11-6time_heap.h:89
↓ 1 callers
Method
add_timer
将目标定时器timer添加到链表中
Linux/nowcoder/5-WebServer/webserver/lst_timer.h:48
↓ 1 callers
Function
addfd
Linux/ch16/16-4stress_client.cpp:23
↓ 1 callers
Function
addsig
Linux/ch15/15-6main.cpp:24
next →
1–100 of 682, ranked by callers