mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -952,7 +952,7 @@ RsStackFileLock::RsStackFileLock(const std::string& file_path)
|
|||
while(RsDirUtil::createLockFile(file_path,_file_handle))
|
||||
{
|
||||
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
|
||||
std::cerr << "Acquired file handle " << _file_handle << ", lock file:" << file_path << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue