MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / StartThread

Method StartThread

src/Qt/VideoCacheThread.cpp:121–127  ·  view source on GitHub ↗

Start the cache thread at high priority, and return true if it’s actually running.

Source from the content-addressed store, hash-verified

119
120 /// Start the cache thread at high priority, and return true if it’s actually running.
121 bool VideoCacheThread::StartThread()
122 {
123 // JUCE’s startThread() returns void, so we launch it and then check if
124 // the thread actually started:
125 startThread(Priority::high);
126 return isThreadRunning();
127 }
128
129 /// Stop the cache thread, waiting up to timeoutMs ms. Returns true if it actually stopped.
130 bool VideoCacheThread::StopThread(int timeoutMs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected