mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
Use sched_yield() instead of usleep(1)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@202039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6081,7 +6081,7 @@ static void try_suggested_sip_codec(struct sip_pvt *p)
|
||||
chan = ast_channel_ref(p->owner);
|
||||
while (ast_channel_trylock(chan)) {
|
||||
sip_pvt_unlock(p);
|
||||
usleep(1);
|
||||
sched_yield();
|
||||
sip_pvt_lock(p);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user