MCPcopy Create free account

hub / github.com/834810071/muduo_study / functions

Functions847 in github.com/834810071/muduo_study

↓ 3 callersMethodlock
book_study/Chapter02/Mutex.h:40
↓ 3 callersMethodmethod
http/HttpRequest.h:86
↓ 3 callersFunctionmysleep
base/tests/Thread_test.cpp:15
↓ 3 callersMethodownerLoop
net/Channel.h:80
↓ 3 callersFunctionprint
base/tests/ThreadLocal_test.cpp:42
↓ 3 callersFunctionprint
reactor/test/test17.cpp:20
↓ 3 callersMethodreadBytes
base/TimeZone.cpp:133
↓ 3 callersFunctionreadFile
base/FileUtil.h:52
↓ 3 callersMethodreadUInt8
base/TimeZone.cpp:158
↓ 3 callersMethodretrieveAll
reactor/Buffer.h:72
↓ 3 callersMethodsetBody
http/HttpResponse.h:66
↓ 3 callersMethodsetCloseCallback
reactor/Channel.h:49
↓ 3 callersMethodsetContentType
http/HttpResponse.h:59
↓ 3 callersMethodstackTrace
base/Exception.h:25
↓ 3 callersMethodtoLocalTime
base/TimeZone.cpp:297
↓ 3 callersMethodweekDay
[0, 1, ..., 6] => [Sunday, Monday, ..., Saturday ]
base/Date.h:76
↓ 2 callersMethodaddTimer
net/TimerQueue.cc:116
↓ 2 callersMethodaddTimer
只负责转发
reactor/TimerQueue.cpp:164
↓ 2 callersMethodappend
Description : 前端在生成一条日志消息时,会调用AsyncLogging::append()。 如果currentBuffer_够用,就把日志内容写入到currentBuffer_中, 如果不够用(就认为其满了),就把currentBuffer_放到已满buffer数组中, 等待消费者线
base/AsyncLogging.cpp:41
↓ 2 callersMethodbindAdddr
reactor/Socket.cpp:22
↓ 2 callersMethodday
base/Date.h:70
↓ 2 callersMethoddisableAll
net/Channel.h:66
↓ 2 callersMethodempty
base/BoundedBlockingQueue.h:67
↓ 2 callersMethodenableReading
net/Channel.h:62
↓ 2 callersMethodfindCRLF
查找回车换行
reactor/Buffer.h:160
↓ 2 callersFunctionfindLocaltime
base/TimeZone.cpp:243
↓ 2 callersMethodgetAndSet
base/Atomic.h:67
↓ 2 callersFunctionhostToNetwork16
net/Endian.h:39
↓ 2 callersFunctionhostToNetwork16
主机顺序转换成网络顺序
reactor/SocketsOps.h:31
↓ 2 callersMethodincrement
base/Atomic.h:57
↓ 2 callersMethodisInLoopThread
reactor/EventLoop.h:41
↓ 2 callersFunctionisLeapYear
base/tests/Date_unittest.cpp:12
↓ 2 callersMethodlisten
reactor/Socket.cpp:27
↓ 2 callersMethodmonth
base/Date.h:65
↓ 2 callersFunctionnetworkToHost16
网络顺序转换成主机顺序
reactor/SocketsOps.h:49
↓ 2 callersMethodnotifyAll
base/Condition.h:42
↓ 2 callersMethodownerLoop
reactor/Channel.h:106
↓ 2 callersMethodpoll
reactor/Poller.cpp:23
↓ 2 callersMethodprependableBytes
reactor/Buffer.h:53
↓ 2 callersFunctionprint
reactor/test/test4.cpp:21
↓ 2 callersFunctionprint
reactor/test/test8.cpp:24
↓ 2 callersMethodremove
net/Channel.cc:59
↓ 2 callersMethodremoveChannel
reactor/Poller.cpp:98
↓ 2 callersFunctionresetTimerfd
net/TimerQueue.cc:68
↓ 2 callersFunctionresetTimerfd
reactor/TimerQueue.cpp:58
↓ 2 callersMethodrestart
reactor/Timer.cpp:11
↓ 2 callersMethodretrieveUntil
reactor/Buffer.h:190
↓ 2 callersMethodrunInLoop
Description : EventLoop线程除了等待poll、执行poll返回的激活事件, 还可以处理一些其他任务,例如调用某一个回调函数,处理其他EventLoop 对象的,调用EventLoop::runInLoop(cb)即可让EventLoop线程执行cb函数。 假设我们有这样的调用
net/EventLoop.cpp:192
↓ 2 callersFunctionscanDir
base/ProcessInfo.cc:45
↓ 2 callersMethodsetCloseConnection
http/HttpResponse.h:53
↓ 2 callersMethodsetErrorCallback
reactor/Channel.h:44
↓ 2 callersMethodsetName
base/tests/Singleton_test.cpp:28
↓ 2 callersMethodsetName
base/tests/ThreadLocalSingleton_test.cpp:29
↓ 2 callersMethodsetPath
http/HttpRequest.h:115
↓ 2 callersMethodsetReadCallback
net/Channel.h:43
↓ 2 callersMethodsetReuseAddr
reactor/Socket.cpp:46
↓ 2 callersMethodsetThreadNum
reactor/TcpServer.cpp:111
↓ 2 callersMethodsetVersion
http/HttpRequest.h:47
↓ 2 callersMethodsetWriteCallback
reactor/Channel.h:39
↓ 2 callersMethodset_revents
reactor/Channel.h:62
↓ 2 callersMethodstart
http/HttpServer.cc:54
↓ 2 callersMethodswap
base/Date.h:45
↓ 2 callersMethodswap
reactor/Buffer.h:36
↓ 2 callersMethodtid
base/Thread.h:36
↓ 2 callersMethodtoIpPort
reactor/SocketsOps.cpp:272
↓ 2 callersMethodunlock
book_study/Chapter02/Mutex.h:46
↓ 2 callersMethodwritableBytes
reactor/Buffer.h:48
↓ 2 callersMethodyear
base/Date.h:60
↓ 1 callersFunctionACQUIRE
base/Mutex.h:210
↓ 1 callersFunctionRELEASE
base/Mutex.h:216
↓ 1 callersMethodaccept
reactor/Socket.cpp:33
↓ 1 callersMethodappend
不是线程安全的,需要外部加锁
base/FileUtil.cc:34
↓ 1 callersMethodappendToBuffer
http/HttpResponse.cc:18
↓ 1 callersMethodas_string
base/StringPiece.h:152
↓ 1 callersMethodassertLocked
book_study/Chapter02/Mutex.h:35
↓ 1 callersFunctionassignHolder
base/Mutex.h:192
↓ 1 callersFunctionbench
base/tests/AsyncLogging_test.cpp:23
↓ 1 callersFunctionbenchmark
base/tests/Timestame_unittest.cpp:23
↓ 1 callersMethodcloseConnection
http/HttpResponse.h:56
↓ 1 callersMethodconnect
reactor/TcpClient.cpp:70
↓ 1 callersMethodconnectEstablished
* 1.创建服务器(TcpServer)时,创建Acceptor,设置接收到客户端请求后执行的回调函数 * 2.Acceptor创建监听套接字,将监听套接字绑定到一个Channel中,设置可读回调函数为Acceptor的handleRead * 3.服务器启动,调用Acceptor的listen
reactor/TcpConnection.cpp:56
↓ 1 callersFunctionconvert
base/LogStream.cpp:47
↓ 1 callersFunctionconvertHex
uintptr_t : unsigned long int
base/LogStream.cpp:71
↓ 1 callersFunctioncreateEventfd
Description : eventfd是一种线程间通信机制。简单来说eventfd就是一个 文件描述符,它引用了一个内核维护的eventfd object,是uint64_t类型, 也就是8个字节,可以作为counter。支持read,write,以及有关epoll等操作。 创建事件fd
net/EventLoop.cpp:32
↓ 1 callersFunctioncreateEventfd
reactor/EventLoop.cpp:25
↓ 1 callersFunctioncreateTimerfd
net/TimerQueue.cc:30
↓ 1 callersFunctioncreateTimerfd
reactor/TimerQueue.cpp:19
↓ 1 callersMethoddata
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 callersFunctiondaysOfMonth
base/tests/Date_unittest.cpp:32
↓ 1 callersMethoddisableWriting
reactor/Channel.h:81
↓ 1 callersMethodenableRetry
reactor/TcpClient.h:36
↓ 1 callersMethodequal
base/TimeZone.cpp:58
↓ 1 callersMethodfd
net/Channel.h:56
↓ 1 callersFunctionfillHMS
base/TimeZone.cpp:84
↓ 1 callersMethodfinish
将名字行输进缓冲区
base/Logging.cpp:168
↓ 1 callersFunctionfoo
base/tests/Mutex_test.cpp:33
↓ 1 callersFunctionfoo
base/tests/Exception_test.cpp:43
↓ 1 callersFunctionforkBench
base/tests/Thread_bench.cpp:33
↓ 1 callersMethodfromLocalTime
base/TimeZone.cpp:319
↓ 1 callersFunctiongetGmt
base/tests/TimeZone_unittest.cpp:35
← previousnext →101–200 of 847, ranked by callers