Merge FreeBSD locking fixes (bug #1411)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3176 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2004-06-09 01:45:08 +00:00
parent c96046b6c2
commit 727abcdec7
76 changed files with 254 additions and 158 deletions

View File

@@ -69,14 +69,14 @@ static int gruntdetect_timeout = 3600000; /* Grunt detect timeout is 1hr. */
static const int prefformat = AST_FORMAT_SLINEAR;
static ast_mutex_t usecnt_lock = AST_MUTEX_INITIALIZER;
AST_MUTEX_DEFINE_STATIC(usecnt_lock);
/* Protect the interface list (of vpb_pvt's) */
static ast_mutex_t iflock = AST_MUTEX_INITIALIZER;
AST_MUTEX_DEFINE_STATIC(iflock);
/* Protect the monitoring thread, so only one process can kill or start it, and not
when it's doing something critical. */
static ast_mutex_t monlock = AST_MUTEX_INITIALIZER;
AST_MUTEX_DEFINE_STATIC(monlock);
/* This is the thread for the monitor which checks for input on the channels
which are not currently in use. */
@@ -171,7 +171,7 @@ typedef struct {
static vpb_bridge_t * bridges;
static int max_bridges = MAX_BRIDGES_V4PCI;
static ast_mutex_t bridge_lock = AST_MUTEX_INITIALIZER;
AST_MUTEX_DEFINE_STATIC(bridge_lock);
typedef enum {
vpb_model_unknown = 0,