MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / delayRefreshScreen

Method delayRefreshScreen

framework/render/video/SdlAFVideoRender.cpp:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void SdlAFVideoRender::delayRefreshScreen()
110{
111 std::thread thread([=]() {
112 std::this_thread::sleep_for(std::chrono::milliseconds(50));
113 {
114 std::unique_lock<std::mutex> lock(mRenderMutex);
115 if (mLastVideoFrame == nullptr && mBackFrame != nullptr) {
116 mLastVideoFrame = mBackFrame->clone();
117 }
118 }
119 });
120 thread.detach();
121}
122
123
124int SdlAFVideoRender::clearScreen()

Callers 1

SdlWindowSizeEventWatchFunction · 0.80

Calls 2

detachMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected