Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/834810071/muduo_study
/ functions
Functions
847 in github.com/834810071/muduo_study
⨍
Functions
847
◇
Types & classes
200
↓ 3 callers
Method
lock
book_study/Chapter02/Mutex.h:40
↓ 3 callers
Method
method
http/HttpRequest.h:86
↓ 3 callers
Function
mysleep
base/tests/Thread_test.cpp:15
↓ 3 callers
Method
ownerLoop
net/Channel.h:80
↓ 3 callers
Function
print
base/tests/ThreadLocal_test.cpp:42
↓ 3 callers
Function
print
reactor/test/test17.cpp:20
↓ 3 callers
Method
readBytes
base/TimeZone.cpp:133
↓ 3 callers
Function
readFile
base/FileUtil.h:52
↓ 3 callers
Method
readUInt8
base/TimeZone.cpp:158
↓ 3 callers
Method
retrieveAll
reactor/Buffer.h:72
↓ 3 callers
Method
setBody
http/HttpResponse.h:66
↓ 3 callers
Method
setCloseCallback
reactor/Channel.h:49
↓ 3 callers
Method
setContentType
http/HttpResponse.h:59
↓ 3 callers
Method
stackTrace
base/Exception.h:25
↓ 3 callers
Method
toLocalTime
base/TimeZone.cpp:297
↓ 3 callers
Method
weekDay
[0, 1, ..., 6] => [Sunday, Monday, ..., Saturday ]
base/Date.h:76
↓ 2 callers
Method
addTimer
net/TimerQueue.cc:116
↓ 2 callers
Method
addTimer
只负责转发
reactor/TimerQueue.cpp:164
↓ 2 callers
Method
append
Description : 前端在生成一条日志消息时,会调用AsyncLogging::append()。 如果currentBuffer_够用,就把日志内容写入到currentBuffer_中, 如果不够用(就认为其满了),就把currentBuffer_放到已满buffer数组中, 等待消费者线
base/AsyncLogging.cpp:41
↓ 2 callers
Method
bindAdddr
reactor/Socket.cpp:22
↓ 2 callers
Method
day
base/Date.h:70
↓ 2 callers
Method
disableAll
net/Channel.h:66
↓ 2 callers
Method
empty
base/BoundedBlockingQueue.h:67
↓ 2 callers
Method
enableReading
net/Channel.h:62
↓ 2 callers
Method
findCRLF
查找回车换行
reactor/Buffer.h:160
↓ 2 callers
Function
findLocaltime
base/TimeZone.cpp:243
↓ 2 callers
Method
getAndSet
base/Atomic.h:67
↓ 2 callers
Function
hostToNetwork16
net/Endian.h:39
↓ 2 callers
Function
hostToNetwork16
主机顺序转换成网络顺序
reactor/SocketsOps.h:31
↓ 2 callers
Method
increment
base/Atomic.h:57
↓ 2 callers
Method
isInLoopThread
reactor/EventLoop.h:41
↓ 2 callers
Function
isLeapYear
base/tests/Date_unittest.cpp:12
↓ 2 callers
Method
listen
reactor/Socket.cpp:27
↓ 2 callers
Method
month
base/Date.h:65
↓ 2 callers
Function
networkToHost16
网络顺序转换成主机顺序
reactor/SocketsOps.h:49
↓ 2 callers
Method
notifyAll
base/Condition.h:42
↓ 2 callers
Method
ownerLoop
reactor/Channel.h:106
↓ 2 callers
Method
poll
reactor/Poller.cpp:23
↓ 2 callers
Method
prependableBytes
reactor/Buffer.h:53
↓ 2 callers
Function
print
reactor/test/test4.cpp:21
↓ 2 callers
Function
print
reactor/test/test8.cpp:24
↓ 2 callers
Method
remove
net/Channel.cc:59
↓ 2 callers
Method
removeChannel
reactor/Poller.cpp:98
↓ 2 callers
Function
resetTimerfd
net/TimerQueue.cc:68
↓ 2 callers
Function
resetTimerfd
reactor/TimerQueue.cpp:58
↓ 2 callers
Method
restart
reactor/Timer.cpp:11
↓ 2 callers
Method
retrieveUntil
reactor/Buffer.h:190
↓ 2 callers
Method
runInLoop
Description : EventLoop线程除了等待poll、执行poll返回的激活事件, 还可以处理一些其他任务,例如调用某一个回调函数,处理其他EventLoop 对象的,调用EventLoop::runInLoop(cb)即可让EventLoop线程执行cb函数。 假设我们有这样的调用
net/EventLoop.cpp:192
↓ 2 callers
Function
scanDir
base/ProcessInfo.cc:45
↓ 2 callers
Method
setCloseConnection
http/HttpResponse.h:53
↓ 2 callers
Method
setErrorCallback
reactor/Channel.h:44
↓ 2 callers
Method
setName
base/tests/Singleton_test.cpp:28
↓ 2 callers
Method
setName
base/tests/ThreadLocalSingleton_test.cpp:29
↓ 2 callers
Method
setPath
http/HttpRequest.h:115
↓ 2 callers
Method
setReadCallback
net/Channel.h:43
↓ 2 callers
Method
setReuseAddr
reactor/Socket.cpp:46
↓ 2 callers
Method
setThreadNum
reactor/TcpServer.cpp:111
↓ 2 callers
Method
setVersion
http/HttpRequest.h:47
↓ 2 callers
Method
setWriteCallback
reactor/Channel.h:39
↓ 2 callers
Method
set_revents
reactor/Channel.h:62
↓ 2 callers
Method
start
http/HttpServer.cc:54
↓ 2 callers
Method
swap
base/Date.h:45
↓ 2 callers
Method
swap
reactor/Buffer.h:36
↓ 2 callers
Method
tid
base/Thread.h:36
↓ 2 callers
Method
toIpPort
reactor/SocketsOps.cpp:272
↓ 2 callers
Method
unlock
book_study/Chapter02/Mutex.h:46
↓ 2 callers
Method
writableBytes
reactor/Buffer.h:48
↓ 2 callers
Method
year
base/Date.h:60
↓ 1 callers
Function
ACQUIRE
base/Mutex.h:210
↓ 1 callers
Function
RELEASE
base/Mutex.h:216
↓ 1 callers
Method
accept
reactor/Socket.cpp:33
↓ 1 callers
Method
append
不是线程安全的,需要外部加锁
base/FileUtil.cc:34
↓ 1 callers
Method
appendToBuffer
http/HttpResponse.cc:18
↓ 1 callers
Method
as_string
base/StringPiece.h:152
↓ 1 callers
Method
assertLocked
book_study/Chapter02/Mutex.h:35
↓ 1 callers
Function
assignHolder
base/Mutex.h:192
↓ 1 callers
Function
bench
base/tests/AsyncLogging_test.cpp:23
↓ 1 callers
Function
benchmark
base/tests/Timestame_unittest.cpp:23
↓ 1 callers
Method
closeConnection
http/HttpResponse.h:56
↓ 1 callers
Method
connect
reactor/TcpClient.cpp:70
↓ 1 callers
Method
connectEstablished
* 1.创建服务器(TcpServer)时,创建Acceptor,设置接收到客户端请求后执行的回调函数 * 2.Acceptor创建监听套接字,将监听套接字绑定到一个Channel中,设置可读回调函数为Acceptor的handleRead * 3.服务器启动,调用Acceptor的listen
reactor/TcpConnection.cpp:56
↓ 1 callers
Function
convert
base/LogStream.cpp:47
↓ 1 callers
Function
convertHex
uintptr_t : unsigned long int
base/LogStream.cpp:71
↓ 1 callers
Function
createEventfd
Description : eventfd是一种线程间通信机制。简单来说eventfd就是一个 文件描述符,它引用了一个内核维护的eventfd object,是uint64_t类型, 也就是8个字节,可以作为counter。支持read,write,以及有关epoll等操作。 创建事件fd
net/EventLoop.cpp:32
↓ 1 callers
Function
createEventfd
reactor/EventLoop.cpp:25
↓ 1 callers
Function
createTimerfd
net/TimerQueue.cc:30
↓ 1 callers
Function
createTimerfd
reactor/TimerQueue.cpp:19
↓ 1 callers
Method
data
data() may return a pointer to a buffer with embedded NULs, and the returned buffer may or may not be null terminated. Therefore it is typically a mi
base/StringPiece.h:96
↓ 1 callers
Function
daysOfMonth
base/tests/Date_unittest.cpp:32
↓ 1 callers
Method
disableWriting
reactor/Channel.h:81
↓ 1 callers
Method
enableRetry
reactor/TcpClient.h:36
↓ 1 callers
Method
equal
base/TimeZone.cpp:58
↓ 1 callers
Method
fd
net/Channel.h:56
↓ 1 callers
Function
fillHMS
base/TimeZone.cpp:84
↓ 1 callers
Method
finish
将名字行输进缓冲区
base/Logging.cpp:168
↓ 1 callers
Function
foo
base/tests/Mutex_test.cpp:33
↓ 1 callers
Function
foo
base/tests/Exception_test.cpp:43
↓ 1 callers
Function
forkBench
base/tests/Thread_bench.cpp:33
↓ 1 callers
Method
fromLocalTime
base/TimeZone.cpp:319
↓ 1 callers
Function
getGmt
base/tests/TimeZone_unittest.cpp:35
← previous
next →
101–200 of 847, ranked by callers