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:
thunder2 2014-10-29 09:38:22 +00:00
parent eefac5e4df
commit 135dde5d59

View File

@ -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;