Use sched_yield() instead of usleep(1)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@202039 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
8830d15044
commit
e24fc1a3de
|
@ -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