File indexing completed on 2024-06-23 04:26:29
0001 /* 0002 * SPDX-FileCopyrightText: 2020 Dmitrii Utkin <loentar@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.1-only 0005 */ 0006 0007 #ifndef RECORDER_CONST_H 0008 #define RECORDER_CONST_H 0009 0010 #include <QThread> 0011 0012 class QString; 0013 class QRegularExpression; 0014 0015 namespace RecorderConst 0016 { 0017 0018 constexpr int waitThreadTimeoutMs = 5000; 0019 0020 QRegularExpression snapshotFilePatternFor(const QString &extension); 0021 0022 } 0023 0024 namespace ThreadSystemValue 0025 { 0026 const unsigned int MaxThreadCount = QThread::idealThreadCount(); 0027 const unsigned int MaxRecordThreadCount = qMax(static_cast<int>(MaxThreadCount) - 1, 1); 0028 const unsigned int IdealRecordThreadCount = qMax(static_cast<int>(MaxRecordThreadCount) - 2, 1); 0029 } 0030 0031 #endif // RECORDER_CONST_H