diff options
Diffstat (limited to 'libs/rs/rsLocklessFifo.cpp')
| -rw-r--r-- | libs/rs/rsLocklessFifo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/rs/rsLocklessFifo.cpp b/libs/rs/rsLocklessFifo.cpp index 0c40389..f4f5d40 100644 --- a/libs/rs/rsLocklessFifo.cpp +++ b/libs/rs/rsLocklessFifo.cpp @@ -159,7 +159,7 @@ void LocklessCommandFifo::makeSpace(uint32_t bytes) if ((mPut+bytes) > mEnd) { // Need to loop regardless of where get is. while((mGet > mPut) && (mBuffer+4 >= mGet)) { - sleep(1); + usleep(100); } // Toss in a reset then the normal wait for space will do the rest. @@ -170,7 +170,7 @@ void LocklessCommandFifo::makeSpace(uint32_t bytes) // it will fit here so we just need to wait for space. while(getFreeSpace() < bytes) { - sleep(1); + usleep(100); } } |
