mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
Changed sleep to usleep in RsStackFileLock::RsStackFileLock (request from Cyril)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7647 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
eefac5e4df
commit
135dde5d59
@ -952,7 +952,7 @@ RsStackFileLock::RsStackFileLock(const std::string& file_path)
|
|||||||
while(RsDirUtil::createLockFile(file_path,_file_handle))
|
while(RsDirUtil::createLockFile(file_path,_file_handle))
|
||||||
{
|
{
|
||||||
std::cerr << "Cannot acquire file lock " << file_path << ", waiting 1 sec." << std::endl;
|
std::cerr << "Cannot acquire file lock " << file_path << ", waiting 1 sec." << std::endl;
|
||||||
sleep(1 * 1000 * 1000) ; // 1 sec
|
usleep(1 * 1000 * 1000) ; // 1 sec
|
||||||
}
|
}
|
||||||
#ifdef RSDIR_DEBUG
|
#ifdef RSDIR_DEBUG
|
||||||
std::cerr << "Acquired file handle " << _file_handle << ", lock file:" << file_path << std::endl;
|
std::cerr << "Acquired file handle " << _file_handle << ", lock file:" << file_path << std::endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user