Added cppcheck workflow
This commit is contained in:
@@ -164,6 +164,7 @@ void RandomX_Hasher::set_seed(const hash& seed)
|
||||
}
|
||||
|
||||
{
|
||||
// cppcheck-suppress unreadVariable
|
||||
ON_SCOPE_LEAVE([this]() { uv_rwlock_wrunlock(&m_cacheLock); });
|
||||
|
||||
if (m_stopped.load()) {
|
||||
@@ -296,6 +297,7 @@ bool RandomX_Hasher::calculate(const void* data, size_t size, const hash& seed,
|
||||
{
|
||||
// First try to use the dataset if it's ready
|
||||
if (uv_rwlock_tryrdlock(&m_datasetLock) == 0) {
|
||||
// cppcheck-suppress unreadVariable
|
||||
ON_SCOPE_LEAVE([this]() { uv_rwlock_rdunlock(&m_datasetLock); });
|
||||
|
||||
if (m_stopped.load()) {
|
||||
|
||||
Reference in New Issue
Block a user