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
↓ 1 callers
Function
addsig
设置信号的处理函数
Linux/ch10/10-3sigurg.cpp:32
↓ 1 callers
Method
adjust_timer
当某个定时任务发生变化时,调整对应的定时器在链表中的位置(只考虑被调整的定时器超时时间延长的情况)
Linux/ch11/11-2lst_timer.h:73
↓ 1 callers
Method
adjust_timer
当某个定时任务发生变化时,调整对应的定时器在链表中的位置。这个函数只考虑被调整的定时器的 超时时间延长的情况,即该定时器需要往链表的尾部移动。*/
Linux/nowcoder/5-WebServer/webserver/lst_timer.h:69
↓ 1 callers
Method
append
Linux/ch15/15-3threadpool.h:77
↓ 1 callers
Method
append
Linux/nowcoder/5-WebServer/webserver/threadpool.h:86
↓ 1 callers
Function
bench
vraci system rc error kod */
Linux/nowcoder/5-WebServer/webserver/test_presure/webbench-1.5/webbench.c:294
↓ 1 callers
Function
build_request
Linux/nowcoder/5-WebServer/webserver/test_presure/webbench-1.5/webbench.c:199
↓ 1 callers
Function
byteorder
Linux/ch5/5-1byteorder.cpp:2
↓ 1 callers
Function
calculateRPE
计算逆波兰表达式的值
practice/calExp.cpp:63
↓ 1 callers
Method
clear
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:85
↓ 1 callers
Function
del_resource
Linux/ch13/13-4shm_talk_server.cpp:82
↓ 1 callers
Method
del_timer
将目标定时器 timer 从链表中删除
Linux/nowcoder/5-WebServer/webserver/lst_timer.h:93
↓ 1 callers
Function
doA
base_code/explicit.cpp:24
↓ 1 callers
Method
empty
Linux/ch11/11-6time_heap.h:164
↓ 1 callers
Function
f
C++2.0/unique_ptr.cpp:11
↓ 1 callers
Method
flush
Linux/nowcoder/5-WebServer/asyncLog/log.cpp:167
↓ 1 callers
Function
foo
C++2.0/shared_ptr.cpp:5
↓ 1 callers
Method
full
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:141
↓ 1 callers
Method
fun
base_code/pure_virtual.cpp:24
↓ 1 callers
Method
fun
base_code/virtual_function.cpp:41
↓ 1 callers
Method
fun
base_code/default_arg.cpp:11
↓ 1 callers
Function
func
base_code/using_global.cpp:9
↓ 1 callers
Function
func4
practice/file.cpp:68
↓ 1 callers
Function
geta
base_code/friend_func_class.cpp:27
↓ 1 callers
Function
globalRaiseSalary
base_code/virtual.cpp:42
↓ 1 callers
Function
handler
practice/exception.cpp:27
↓ 1 callers
Function
help
review/code/baidu_0313_2.cpp:15
↓ 1 callers
Method
init
初始化连接,外部调用初始化套接字地址
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:74
↓ 1 callers
Function
isOperator
判断字符是否为运算符(包括加减乘除)
practice/calExp.cpp:6
↓ 1 callers
Function
isPossible
STL/unordered_map.cpp:6
↓ 1 callers
Function
listNodeToString
链表转字符串
memo/listnode.cpp:95
↓ 1 callers
Function
lt
LT 模式工作流程
Linux/ch9/9-3mtlt.cpp:42
↓ 1 callers
Function
merge
review/code/mihoyo_0319_1_uf.cpp:13
↓ 1 callers
Method
mergeTrees
memo/treenode.cpp:24
↓ 1 callers
Method
mergeTwoLists
memo/listnode.cpp:21
↓ 1 callers
Function
multiply
base_code/decltype.cpp:14
↓ 1 callers
Function
my_find_if
C++2.0/bind_function.cpp:78
↓ 1 callers
Function
mybind1st
C++2.0/bind_function.cpp:70
↓ 1 callers
Method
operator()
重载 ()
base_code/overload.cpp:19
↓ 1 callers
Function
parse_requestline
分析请求行
Linux/ch8/8-3httpparser.cpp:93
↓ 1 callers
Method
pop
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:147
↓ 1 callers
Method
post
Linux/ch14/14-2locker.h:27
↓ 1 callers
Method
post
增加信号量
Linux/nowcoder/5-WebServer/webserver/locker.h:103
↓ 1 callers
Method
print
base_code/struct_function.cpp:15
↓ 1 callers
Method
process
由线程池中的工作线程调用,这是处理HTTP请求的入口函数 */
Linux/ch15/15-5http_conn.cpp:548
↓ 1 callers
Method
process
Linux/ch15/15-1processpool.h:24
↓ 1 callers
Method
process
由线程池中的工作线程调用,这是处理HTTP请求的入口函数
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:559
↓ 1 callers
Method
raiseSalary
base_code/virtual.cpp:21
↓ 1 callers
Method
read
循环读取客户数据,直到无数据可读或者对方关闭连接 */
Linux/ch15/15-5http_conn.cpp:127
↓ 1 callers
Method
read
循环读取客户数据,直到无数据可读或者对方关闭连接
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:112
↓ 1 callers
Function
read_once
Linux/ch16/16-4stress_client.cpp:57
↓ 1 callers
Function
recv_fd
接收目标文件描述符
Linux/ch13/13-5passfd.cpp:38
↓ 1 callers
Function
removefd
从epoll中移除监听的文件描述符
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:42
↓ 1 callers
Function
reset_oneshot
重置 fd 上的事件,这样操作之后,尽管 fd 上的 EPOLLONESHOT 事件被注册 但是操作系统仍然会触发 fd 上的 EPOLLIN 事件,且只触发一次
Linux/ch9/9-4oneshot.cpp:47
↓ 1 callers
Function
reversePolarExp
practice/calExp.cpp:21
↓ 1 callers
Method
run
Linux/nowcoder/5-WebServer/webserver/threadpool.h:110
↓ 1 callers
Function
send_fd
发送文件描述符,fd 参数是用来传递信息的 UNIX 域 socket fd_to_send 参数是待发送的文件描述符
Linux/ch13/13-5passfd.cpp:13
↓ 1 callers
Function
setnonblocking
Linux/ch15/15-5http_conn.cpp:17
↓ 1 callers
Function
setnonblocking
Linux/ch16/16-4stress_client.cpp:15
↓ 1 callers
Function
setnonblocking
设置非阻塞 sockfd,并返回原有 option
Linux/ch9/9-8multi_port.cpp:21
↓ 1 callers
Function
setnonblocking
设置 fd 为非阻塞
Linux/ch9/9-3mtlt.cpp:19
↓ 1 callers
Function
setnonblocking
设置非阻塞的 socket
Linux/ch9/9-5unblockconnect.cpp:19
↓ 1 callers
Function
setnonblocking
Linux/ch9/9-4oneshot.cpp:23
↓ 1 callers
Function
setnonblocking
Linux/ch9/9-7mytalk_server.cpp:28
↓ 1 callers
Method
show
base_code/virtual_base.cpp:9
↓ 1 callers
Method
show
base_code/static_in_class.cpp:10
↓ 1 callers
Function
show_error
Linux/ch15/15-6main.cpp:37
↓ 1 callers
Function
solve
review/code/mihoyo_0319_2.cpp:16
↓ 1 callers
Method
start
practice/threadpool.cpp:14
↓ 1 callers
Method
startPool
开启线程池
practice/threadpool.cpp:36
↓ 1 callers
Function
start_conn
Linux/ch16/16-4stress_client.cpp:75
↓ 1 callers
Function
stringToIntegerVector
字符串输入转 vector:[1,2,3,4,5]
memo/listnode.cpp:60
↓ 1 callers
Function
t1
STL/thread.cpp:16
↓ 1 callers
Method
tick
Linux/ch11/11-6time_heap.h:142
↓ 1 callers
Method
tick
SIGALARM 信号每次被触发就在其信号处理函数中执行一次 tick() 函数,以处理链表上到期任务。*/
Linux/nowcoder/5-WebServer/webserver/lst_timer.h:128
↓ 1 callers
Function
timeout_connect
连接超时函数
Linux/ch11/11-1connect_timeout.cpp:15
↓ 1 callers
Function
timer_handler
Linux/ch11/11-3nonactive_conn.cpp:60
↓ 1 callers
Function
timer_handler
Linux/nowcoder/5-WebServer/webserver/main.cpp:48
↓ 1 callers
Function
treeNodeToString
二叉树层序遍历形式输出
memo/treenode.cpp:107
↓ 1 callers
Function
trimLeftTrailingSpaces
去掉左边 white-space:https://cplusplus.com/reference/cctype/isspace/?kw=isspace
memo/listnode.cpp:46
↓ 1 callers
Function
trimRightTrailingSpaces
base 从其 reverse_iterator还原基础迭代器,因为 earse 参数只能是基础迭代器
memo/listnode.cpp:53
↓ 1 callers
Function
trimRightTrailingSpaces
去掉右空白字符串
memo/treenode.cpp:50
↓ 1 callers
Function
unblock_connect
超时连接函数,参数分别是服务器 IP 地址、端口号和超时时间(毫秒) 函数成功时返回已经处于连接状态的 socket,失败则返回 -1
Linux/ch9/9-5unblockconnect.cpp:29
↓ 1 callers
Method
write
写HTTP响应
Linux/nowcoder/5-WebServer/webserver/http_conn.cpp:386
↓ 1 callers
Function
write_nbytes
Linux/ch16/16-4stress_client.cpp:32
Method
A
C++2.0/variadic.cpp:45
Method
A
base_code/friend_func_class.cpp:12
Method
A
base_code/explicit.cpp:10
Method
A
base_code/virtual_public.cpp:9
Method
AppendLogLevelTitle_
Linux/nowcoder/5-WebServer/asyncLog/log.cpp:147
Method
B
base_code/explicit.cpp:18
Method
B
base_code/virtual_public.cpp:18
Method
Base
纯虚函数
base_code/pure_virtual.cpp:10
Method
Base
base_code/derived_base.cpp:26
Method
Base
base_code/struct_function.cpp:18
Method
Base1
base_code/derived_base.cpp:11
Method
BlockDeque
Linux/nowcoder/5-WebServer/asyncLog/blockqueue.h:58
Method
C
base_code/virtual_public.cpp:27
Method
CSmartPtr
C++2.0/smart_ptr.cpp:27
Method
D
B C 虚继承 A 之后,ma 必须交给 D 初始化,所以这里必须调用 A(data)
base_code/virtual_public.cpp:37
← previous
next →
101–200 of 682, ranked by callers