Unfortunately, since trunk uses read/write locks for the context lock, it means that I have
actually *introduced* a deadlock condition since they are not recursive. Removing this change
for now and will look into introducing a different one.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89483
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
{
struct ast_hint *hint;
- ast_rdlock_contexts();
AST_RWLIST_RDLOCK(&hints);
AST_RWLIST_TRAVERSE(&hints, hint, list) {
}
AST_RWLIST_UNLOCK(&hints);
- ast_unlock_contexts();
}
static int statechange_queue(const char *dev)