dect
/
asterisk
Archived
13
0
Fork 0

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:
mnicholson 2009-06-19 21:25:06 +00:00
parent 8830d15044
commit e24fc1a3de
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}