Commit 2bb27129 authored by Tristan Matthews's avatar Tristan Matthews

* #18668: iax: use usleep

parent 8b55d66d
......@@ -29,6 +29,10 @@
* as that of the covered work.
*/
#include "iaxvoiplink.h"
#include <unistd.h>
#include <cmath>
#include <algorithm>
#include "iaxcall.h"
#include "eventthread.h"
#include "im/instant_messaging.h"
......@@ -41,9 +45,6 @@
#include "array_size.h"
#include "scoped_lock.h"
#include <cmath>
#include <algorithm>
AccountMap IAXVoIPLink::iaxAccountMap_;
IAXCallMap IAXVoIPLink::iaxCallMap_;
// has same effect as pthread_mutex_init with default args, but for a statically
......@@ -154,7 +155,7 @@ IAXVoIPLink::getEvent()
sendAudioFromMic();
// thread wait 3 millisecond
ost::Thread::sleep(3);
usleep(3000);
return handlingEvents_;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment