MCPcopy Create free account
hub / github.com/834810071/muduo_study / threadFunc

Method threadFunc

base/AsyncLogging.cpp:79–176  ·  view source on GitHub ↗

Description : 如果buffers_为空,使用条件变量等待条件满足(即前端线程把一个已经满了 的buffer放到了buffers_中或者超时)。将当前缓冲区放到buffers_数组中。 更新当前缓冲区(currentBuffer_)和另一个缓冲区(nextBuffer_)。 将bufferToWrite和buffers_进行swap。这就完成了将写了日志记录的buffer 从前端线程到后端线程的转变。 *********************************************************************/

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 15

countDownMethod · 0.80
bzeroMethod · 0.80
waitForSecondsMethod · 0.80
c_strMethod · 0.80
toFormattedStringMethod · 0.80
clearMethod · 0.80
lengthMethod · 0.45
emptyMethod · 0.45
swapMethod · 0.45
sizeMethod · 0.45
appendMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected