[DEV] remove dependency of unistd.h

This commit is contained in:
2016-10-13 21:29:18 +02:00
parent abc2ce6a49
commit a5ca43b7dd
11 changed files with 42 additions and 40 deletions

View File

@@ -252,7 +252,7 @@ std::vector<int16_t> audio::river::Interface::read(size_t _nbChunk) {
int32_t nbChunkBuffer = m_circularBuffer.size() / m_map.size();
m_mutex.unlock();
while (nbChunkBuffer < _nbChunk) {
usleep(1000);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
nbChunkBuffer = m_circularBuffer.size() / m_map.size();
}
m_mutex.lock();