Auto format C++ source

This commit is contained in:
2022-08-08 01:07:26 -07:00
parent c5a640e22d
commit 7433d54c16
155 changed files with 17259 additions and 16879 deletions

View File

@@ -37,19 +37,19 @@
#include <chrono>
KRStreamerThread::KRStreamerThread(KRContext &context) : m_context(context)
KRStreamerThread::KRStreamerThread(KRContext& context) : m_context(context)
{
m_running = false;
m_stop = false;
m_running = false;
m_stop = false;
}
void KRStreamerThread::start()
{
if(!m_running) {
m_running = true;
m_thread = std::thread(&KRStreamerThread::run, this);
}
if (!m_running) {
m_running = true;
m_thread = std::thread(&KRStreamerThread::run, this);
}
}
void KRStreamerThread::stop()
@@ -70,18 +70,17 @@ void KRStreamerThread::run()
{
#if defined(ANDROID)
// TODO - Set thread names on Android
// TODO - Set thread names on Android
#elif defined(_WIN32) || defined(_WIN64)
// TODO - Set thread names on windows
// TODO - Set thread names on windows
#else
pthread_setname_np("Kraken - Streamer");
pthread_setname_np("Kraken - Streamer");
#endif
std::chrono::microseconds sleep_duration( 15000 );
std::chrono::microseconds sleep_duration(15000);
while(!m_stop)
{
m_context.doStreaming();
std::this_thread::sleep_for( sleep_duration );
}
while (!m_stop) {
m_context.doStreaming();
std::this_thread::sleep_for(sleep_duration);
}
}