rx-init-mutex-before-calling-getudpsocket-20030313

pointed out by cg2v@andrew.cmu.edu
This commit is contained in:
Derrick Brashear 2003-03-13 19:01:24 +00:00
parent f54bdeeb85
commit 7187d07423

View File

@ -398,6 +398,8 @@ int rx_Init(u_int port)
rxi_InitializeThreadSupport(); rxi_InitializeThreadSupport();
#endif #endif
MUTEX_INIT(&rx_stats_mutex, "rx_stats_mutex",MUTEX_DEFAULT,0);
/* Allocate and initialize a socket for client and perhaps server /* Allocate and initialize a socket for client and perhaps server
* connections. */ * connections. */
@ -412,7 +414,6 @@ int rx_Init(u_int port)
#ifdef RX_LOCKS_DB #ifdef RX_LOCKS_DB
rxdb_init(); rxdb_init();
#endif /* RX_LOCKS_DB */ #endif /* RX_LOCKS_DB */
MUTEX_INIT(&rx_stats_mutex, "rx_stats_mutex",MUTEX_DEFAULT,0);
MUTEX_INIT(&rx_rpc_stats, "rx_rpc_stats",MUTEX_DEFAULT,0); MUTEX_INIT(&rx_rpc_stats, "rx_rpc_stats",MUTEX_DEFAULT,0);
MUTEX_INIT(&rx_freePktQ_lock, "rx_freePktQ_lock",MUTEX_DEFAULT,0); MUTEX_INIT(&rx_freePktQ_lock, "rx_freePktQ_lock",MUTEX_DEFAULT,0);
MUTEX_INIT(&freeSQEList_lock, "freeSQEList lock",MUTEX_DEFAULT,0); MUTEX_INIT(&freeSQEList_lock, "freeSQEList lock",MUTEX_DEFAULT,0);