|
|
@ -1554,13 +1554,12 @@ static inline int _ast_rwlock_tryrdlock(ast_rwlock_t *t, const char *name,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int res;
|
|
|
|
int res;
|
|
|
|
struct ast_lock_track *lt = &t->track;
|
|
|
|
struct ast_lock_track *lt = &t->track;
|
|
|
|
int canlog = strcmp(filename, "logger.c") & t->tracking;
|
|
|
|
|
|
|
|
#ifdef HAVE_BKTR
|
|
|
|
#ifdef HAVE_BKTR
|
|
|
|
struct ast_bt *bt = NULL;
|
|
|
|
struct ast_bt *bt = NULL;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef AST_MUTEX_INIT_W_CONSTRUCTORS
|
|
|
|
#ifdef AST_MUTEX_INIT_W_CONSTRUCTORS
|
|
|
|
|
|
|
|
int canlog = strcmp(filename, "logger.c") & t->tracking;
|
|
|
|
|
|
|
|
|
|
|
|
if ((t->lock) == ((pthread_rwlock_t) __AST_RWLOCK_INIT_VALUE)) {
|
|
|
|
if ((t->lock) == ((pthread_rwlock_t) __AST_RWLOCK_INIT_VALUE)) {
|
|
|
|
/* Don't warn abount uninitialized lock.
|
|
|
|
/* Don't warn abount uninitialized lock.
|
|
|
|
* Simple try to initialize it.
|
|
|
|
* Simple try to initialize it.
|
|
|
@ -1613,13 +1612,12 @@ static inline int _ast_rwlock_trywrlock(ast_rwlock_t *t, const char *name,
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int res;
|
|
|
|
int res;
|
|
|
|
struct ast_lock_track *lt= &t->track;
|
|
|
|
struct ast_lock_track *lt= &t->track;
|
|
|
|
int canlog = strcmp(filename, "logger.c") & t->tracking;
|
|
|
|
|
|
|
|
#ifdef HAVE_BKTR
|
|
|
|
#ifdef HAVE_BKTR
|
|
|
|
struct ast_bt *bt = NULL;
|
|
|
|
struct ast_bt *bt = NULL;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef AST_MUTEX_INIT_W_CONSTRUCTORS
|
|
|
|
#ifdef AST_MUTEX_INIT_W_CONSTRUCTORS
|
|
|
|
|
|
|
|
int canlog = strcmp(filename, "logger.c") & t->tracking;
|
|
|
|
|
|
|
|
|
|
|
|
if ((t->lock) == ((pthread_rwlock_t) __AST_RWLOCK_INIT_VALUE)) {
|
|
|
|
if ((t->lock) == ((pthread_rwlock_t) __AST_RWLOCK_INIT_VALUE)) {
|
|
|
|
/* Don't warn abount uninitialized lock.
|
|
|
|
/* Don't warn abount uninitialized lock.
|
|
|
|
* Simple try to initialize it.
|
|
|
|
* Simple try to initialize it.
|
|
|
|