mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-25 11:00:11 +08:00
fix: RunGuard not works on Qt6
This commit is contained in:
parent
f746888c56
commit
d64bc2b619
3
3rdparty/RunGuard.hpp
vendored
3
3rdparty/RunGuard.hpp
vendored
@ -75,9 +75,6 @@ bool RunGuard::isAnotherRunning(quint64 *data_out) {
|
||||
}
|
||||
|
||||
bool RunGuard::tryToRun(quint64 *data_in) {
|
||||
if (isAnotherRunning(nullptr)) // Extra check
|
||||
return false;
|
||||
|
||||
memLock.acquire();
|
||||
const bool result = sharedMem.create(sizeof(quint64));
|
||||
if (result) memcpy(sharedMem.data(), data_in, sizeof(quint64));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user