projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7339d85
)
Use sched_yield() instead of usleep(1)
author
Matthew Nicholson
<mnicholson@digium.com>
Fri, 19 Jun 2009 21:25:06 +0000
(21:25 +0000)
committer
Matthew Nicholson
<mnicholson@digium.com>
Fri, 19 Jun 2009 21:25:06 +0000
(21:25 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@202039
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
channels/chan_sip.c
patch
|
blob
|
history
diff --git
a/channels/chan_sip.c
b/channels/chan_sip.c
index
c61db0c
..
76fed20
100644
(file)
--- a/
channels/chan_sip.c
+++ b/
channels/chan_sip.c
@@
-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);
}