change: change code style to Linux style except indent.

This commit is contained in:
Mike Solar
2025-08-03 03:09:40 +08:00
parent 65ab76edc8
commit 74f73ab3be
789 changed files with 77113 additions and 68888 deletions
+20 -19
View File
@@ -20,43 +20,44 @@
#include "customcachetask.h"
namespace olive {
CustomCacheTask::CustomCacheTask(const QString &sequence_name) :
cancelled_through_finish_(false)
namespace olive
{
SetTitle(tr("Caching custom range for \"%1\"").arg(sequence_name));
CustomCacheTask::CustomCacheTask(const QString &sequence_name)
: cancelled_through_finish_(false)
{
SetTitle(tr("Caching custom range for \"%1\"").arg(sequence_name));
}
void CustomCacheTask::Finish()
{
mutex_.lock();
mutex_.lock();
cancelled_through_finish_ = true;
Cancel();
cancelled_through_finish_ = true;
Cancel();
mutex_.unlock();
mutex_.unlock();
}
bool CustomCacheTask::Run()
{
mutex_.lock();
mutex_.lock();
while (!IsCancelled()) {
wait_cond_.wait(&mutex_);
}
while (!IsCancelled()) {
wait_cond_.wait(&mutex_);
}
mutex_.unlock();
mutex_.unlock();
return true;
return true;
}
void CustomCacheTask::CancelEvent()
{
if (!cancelled_through_finish_) {
emit Cancelled();
}
wait_cond_.wakeOne();
if (!cancelled_through_finish_) {
emit Cancelled();
}
wait_cond_.wakeOne();
}
}