MCPcopy Create free account

hub / github.com/EricPengShuai/Interview / functions

Functions682 in github.com/EricPengShuai/Interview

↓ 28 callersMethodpush_back
base_code/template.cpp:235
↓ 21 callersMethodpush
practice/itemPool.cpp:24
↓ 16 callersMethodsize
base_code/template.cpp:271
↓ 14 callersMethodpop
practice/itemPool.cpp:31
↓ 12 callersMethodtop
base_code/template.cpp:90
↓ 10 callersMethodemplace_back
base_code/template.cpp:247
↓ 10 callersMethodempty
practice/itemPool.cpp:48
↓ 9 callersMethodput
practice/producer_consumer.cpp:14
↓ 8 callersMethodShowTime
base_code/overload.cpp:48
↓ 7 callersFunctiondfs
review/code/mihoyo_0319_1_dfs.cpp:5
↓ 6 callersFunctionmodfd
Linux/ch15/15-5http_conn.cpp:45
↓ 6 callersFunctionremovefd
Linux/ch15/15-5http_conn.cpp:39
↓ 6 callersMethodunlock
Linux/ch14/14-2locker.h:55
↓ 5 callersFunctionaddfd
Linux/ch13/13-4shm_talk_server.cpp:52
↓ 5 callersFunctionaddsig
Linux/ch13/13-4shm_talk_server.cpp:69
↓ 5 callersFunctionclose_conn
Linux/ch16/16-4stress_client.cpp:102
↓ 5 callersMethodconstruct
base_code/template.cpp:139
↓ 5 callersMethodfoo
C++2.0/unique_ptr.cpp:8
↓ 5 callersMethodget
practice/producer_consumer.cpp:32
↓ 5 callersFunctionmodfd
修改文件描述符,重置socket上的EPOLLONESHOT事件,以确保下一次可读时,EPOLLIN事件能被触发
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:49
↓ 5 callersMethodsize
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:103
↓ 5 callersMethodunlock
Linux/nowcoder/5-WebServer/webserver/locker.h:28
↓ 5 callersMethodwait
Linux/ch14/14-2locker.h:23
↓ 4 callersFunctionaddfd
Linux/ch15/15-1processpool.h:88
↓ 4 callersFunctionaddsig
Linux/ch15/15-1processpool.h:112
↓ 4 callersFunctionaddsig
设置信号的处理函数
Linux/ch10/10-1unievent.cpp:47
↓ 4 callersMethodallocate
base_code/template.cpp:129
↓ 4 callersMethoddestroy
base_code/template.cpp:150
↓ 4 callersMethodempty
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:135
↓ 4 callersMethodfront
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:91
↓ 4 callersMethodfront
practice/itemPool.cpp:43
↓ 4 callersMethodlock
Linux/ch14/14-2locker.h:51
↓ 4 callersFunctionpv
op 为 -1 时执行 P 操作,为 1 时执行 V 操作
Linux/ch13/13-3sem.cpp:16
↓ 4 callersFunctionshowVector
STL/vector.cpp:6
↓ 4 callersMethodwait
等待信号量
Linux/nowcoder/5-WebServer/webserver/locker.h:98
↓ 3 callersFunctionPrint
STL/list.cpp:8
↓ 3 callersFunctionPrint_f
STL/list.cpp:17
↓ 3 callersFunctionaddfd
Linux/ch10/10-1unievent.cpp:27
↓ 3 callersFunctionaddfd
Linux/ch11/11-3nonactive_conn.cpp:33
↓ 3 callersFunctionaddfd
向epoll中添加需要监听的文件描述符
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:26
↓ 3 callersFunctionaddfd
向 epollfd 指定的内核注册表中注册 fd
Linux/ch9/9-8multi_port.cpp:30
↓ 3 callersFunctionaddfd
将文件描述符 fd 上的 EPOLLIN 注册到 epoll 指定的内核事件表 epollfd
Linux/ch9/9-3mtlt.cpp:28
↓ 3 callersFunctionaddsig
添加信号捕捉
Linux/nowcoder/5-WebServer/webserver/main.cpp:31
↓ 3 callersMethodclose_conn
Linux/ch15/15-5http_conn.cpp:56
↓ 3 callersMethodclose_conn
关闭连接
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:63
↓ 3 callersMethoddeallocate
base_code/template.cpp:134
↓ 3 callersMethodlock
Linux/nowcoder/5-WebServer/webserver/locker.h:24
↓ 3 callersFunctionother
base_code/static.cpp:26
↓ 3 callersFunctionparse_content
分析HTTP请求的入口函数 */
Linux/ch8/8-3httpparser.cpp:168
↓ 3 callersFunctionparse_headers
分析头部字段 */
Linux/ch8/8-3httpparser.cpp:146
↓ 3 callersFunctionparse_line
从状态机:解析一行的内容 checked_index 是当前正在分析字节的下标,read_index 是 buffer 尾部的下一个字节 逐个检查 buffer[checked_index...read_index-1] 字节
Linux/ch8/8-3httpparser.cpp:54
↓ 3 callersMethodpush_back
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:115
↓ 3 callersFunctionseek
review/code/mihoyo_0319_1_uf.cpp:12
↓ 3 callersFunctionshowContainer
C++2.0/bind_function.cpp:43
↓ 3 callersFunctiontemperature
practice/exception.cpp:8
↓ 3 callersFunctiontrimLeftTrailingSpaces
去掉左空白字符串
memo/treenode.cpp:42
↓ 3 callersFunctionusage
Linux/nowcoder/5-WebServer/webserver/test_presure/webbench-1.5/webbench.c:82
↓ 2 callersFunctionLTrim
STL/string.cpp:31
↓ 2 callersFunctionRTrim
STL/string.cpp:36
↓ 2 callersFunctionSocket
Linux/nowcoder/5-WebServer/webserver/test_presure/webbench-1.5/socket.c:29
↓ 2 callersMethodaddRef
C++2.0/smart_ptr.cpp:16
↓ 2 callersFunctionaddfd
Linux/ch15/15-5http_conn.cpp:25
↓ 2 callersFunctionaddfd
将 fd 上的 EPOLLIN 和 EPOLLET 事件注册到 epollfd 指示的 epoll 内核事件表中
Linux/ch9/9-4oneshot.cpp:32
↓ 2 callersFunctionaddsig
Linux/ch11/11-3nonactive_conn.cpp:50
↓ 2 callersFunctionbenchcore
Linux/nowcoder/5-WebServer/webserver/test_presure/webbench-1.5/webbench.c:398
↓ 2 callersFunctioncb_func
定时器回调函数,它删除非活动连接 socket 上的注册事件,并关闭之
Linux/ch11/11-3nonactive_conn.cpp:69
↓ 2 callersFunctioncompare
base_code/template.cpp:12
↓ 2 callersFunctioncompare
STL/functor.cpp:35
↓ 2 callersMethoddelRef
C++2.0/smart_ptr.cpp:17
↓ 2 callersMethoddel_timer
Linux/ch11/11-6time_heap.h:112
↓ 2 callersMethodf
base_code/using_derived.cpp:10
↓ 2 callersMethodf
base_code/c++_polymorphism.cpp:7
↓ 2 callersMethodinit
Linux/ch15/15-5http_conn.cpp:66
↓ 2 callersMethodpop_back
base_code/template.cpp:258
↓ 2 callersFunctionpriority
判断运算符的优先级
practice/calExp.cpp:11
↓ 2 callersMethodpush_front
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:125
↓ 2 callersMethodrun
Linux/ch15/15-3threadpool.h:106
↓ 2 callersFunctionrun_child
子进程运行的函数,参数 idx 指出该子进程处理的客户连接的编号, users 是保存所有客户连接数据的数组,share_mem 指出共享内存的起始地址
Linux/ch13/13-4shm_talk_server.cpp:101
↓ 2 callersFunctionsetnonblocking
Linux/ch13/13-4shm_talk_server.cpp:44
↓ 2 callersFunctionsetnonblocking
Linux/ch15/15-1processpool.h:80
↓ 2 callersFunctionsetnonblocking
Linux/ch10/10-1unievent.cpp:19
↓ 2 callersFunctionsetnonblocking
Linux/ch11/11-3nonactive_conn.cpp:25
↓ 2 callersFunctionsetnonblocking
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:17
↓ 2 callersFunctionsolve
review/code/mihoyo_0319_1_uf.cpp:21
↓ 2 callersFunctionsplit
review/code/mihoyo_0319_2.cpp:4
↓ 2 callersFunctionstringToListNode
注意构造链表的方式
memo/listnode.cpp:77
↓ 2 callersFunctionstringToTreeNode
字符串转二叉树
memo/treenode.cpp:58
↓ 2 callersMethodtest2
error! 不能访问 private 成员
base_code/derived_base.cpp:41
↓ 2 callersMethodwho
base_code/inline.cpp:7
↓ 2 callersMethodwho
base_code/virtual_inline.cpp:52
↓ 2 callersMethodwrite
写HTTP响应 */
Linux/ch15/15-5http_conn.cpp:360
↓ 1 callersMethodAsyncWrite_
Linux/nowcoder/5-WebServer/asyncLog/log.cpp:174
↓ 1 callersFunctionBase
base_code/struct_func.c:18
↓ 1 callersMethodClose
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:69
↓ 1 callersFunctionTrim
STL/string.cpp:41
↓ 1 callersFunction_hash
C++2.0/variadic.cpp:16
↓ 1 callersMethodadd_timer
Linux/ch11/11-6time_heap.h:89
↓ 1 callersMethodadd_timer
将目标定时器timer添加到链表中
Linux/nowcoder/5-WebServer/webserver/lst_timer.h:48
↓ 1 callersFunctionaddfd
Linux/ch16/16-4stress_client.cpp:23
↓ 1 callersFunctionaddsig
Linux/ch15/15-6main.cpp:24
next →1–100 of 682, ranked by callers