Browse Source

Tests: PityTest - fsMutex, common lets speed it a little by default

master
heck 4 years ago
parent
commit
dff6962361
  1. 4
      src/fs_mutex.cc

4
src/fs_mutex.cc

@ -14,7 +14,7 @@ namespace pEp {
} else { } else {
std::string mutex_file = mutexpath; std::string mutex_file = mutexpath;
while (Utils::path_exists(mutex_file)) { while (Utils::path_exists(mutex_file)) {
Utils::sleep_millis(5); Utils::sleep_millis(2);
} }
std::ofstream msgfile = Utils::file_create(mutexpath); std::ofstream msgfile = Utils::file_create(mutexpath);
} }
@ -29,7 +29,7 @@ namespace pEp {
try { try {
Utils::path_delete(mutexpath); Utils::path_delete(mutexpath);
// Give others a chance to pickup // Give others a chance to pickup
Utils::sleep_millis(100); Utils::sleep_millis(4);
} catch (...) { } catch (...) {
// pEpLogClass("Error releasing fsmutex"); // pEpLogClass("Error releasing fsmutex");
} }

Loading…
Cancel
Save