mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Merged revisions 282366 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r282366 | tilghman | 2010-08-13 23:53:58 -0500 (Fri, 13 Aug 2010) | 4 lines Fix our FRACKing issue with chan_iax2 a different way. Review: https://reviewboard.asterisk.org/r/861/ ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@282367 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -53,7 +53,7 @@ extern "C" {
|
||||
int _count = 0; \
|
||||
int _sched_res = -1; \
|
||||
while (id > -1 && (_sched_res = ast_sched_del(sched, id)) && ++_count < 10) \
|
||||
usleep(1000); \
|
||||
usleep(1); \
|
||||
if (_count == 10 && option_debug > 2) { \
|
||||
ast_log(LOG_DEBUG, "Unable to cancel schedule ID %d.\n", id); \
|
||||
} \
|
||||
@@ -70,7 +70,7 @@ extern "C" {
|
||||
do { \
|
||||
int _count = 0; \
|
||||
while (id > -1 && ast_sched_del(sched, id) && ++_count < 10) { \
|
||||
usleep(1000); \
|
||||
usleep(1); \
|
||||
} \
|
||||
if (_count == 10) \
|
||||
ast_log(LOG_WARNING, "Unable to cancel schedule ID %d. This is probably a bug (%s: %s, line %d).\n", id, __FILE__, __PRETTY_FUNCTION__, __LINE__); \
|
||||
@@ -89,7 +89,7 @@ extern "C" {
|
||||
int _sched_res = -1; \
|
||||
while (id > -1 && (_sched_res = ast_sched_del(sched, id)) && ++_count < 10) { \
|
||||
ast_mutex_unlock(lock); \
|
||||
usleep(1000); \
|
||||
usleep(1); \
|
||||
ast_mutex_lock(lock); \
|
||||
} \
|
||||
if (_count == 10 && option_debug > 2) { \
|
||||
@@ -103,7 +103,7 @@ extern "C" {
|
||||
do { \
|
||||
int _count = 0; \
|
||||
while (id > -1 && ast_sched_del(sched, id) && ++_count < 10) { \
|
||||
usleep(1000); \
|
||||
usleep(1); \
|
||||
} \
|
||||
if (_count == 10) \
|
||||
ast_log(LOG_WARNING, "Unable to cancel schedule ID %d. This is probably a bug (%s: %s, line %d).\n", id, __FILE__, __PRETTY_FUNCTION__, __LINE__); \
|
||||
@@ -122,7 +122,7 @@ extern "C" {
|
||||
int _count = 0, _res=1; \
|
||||
void *_data = (void *)ast_sched_find_data(sched, id); \
|
||||
while (id > -1 && (_res = ast_sched_del(sched, id) && _count++ < 10)) { \
|
||||
usleep(1000); \
|
||||
usleep(1); \
|
||||
} \
|
||||
if (!_res && _data) \
|
||||
unrefcall; /* should ref _data! */ \
|
||||
|
Reference in New Issue
Block a user