mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
rx-init-stats-mutex-20030314
instead of what rx-init-mutex-before-calling-getudpsocket-20030313, just init the mutex earlier where others are done
This commit is contained in:
parent
3c22e61e23
commit
3c39714397
@ -148,6 +148,7 @@ static unsigned int rxi_rpc_process_stat_cnt;
|
||||
* to ease NT porting
|
||||
*/
|
||||
|
||||
extern pthread_mutex_t rx_stats_mutex;
|
||||
extern pthread_mutex_t rxkad_stats_mutex;
|
||||
extern pthread_mutex_t des_init_mutex;
|
||||
extern pthread_mutex_t des_random_mutex;
|
||||
@ -172,6 +173,8 @@ static pthread_mutex_t rx_debug_mutex;
|
||||
static void rxi_InitPthread(void) {
|
||||
assert(pthread_mutex_init(&rx_clock_mutex,
|
||||
(const pthread_mutexattr_t*)0)==0);
|
||||
assert(pthread_mutex_init(&rx_stats_mutex,
|
||||
(const pthread_mutexattr_t*)0)==0);
|
||||
assert(pthread_mutex_init(&rxi_connCacheMutex,
|
||||
(const pthread_mutexattr_t*)0)==0);
|
||||
assert(pthread_mutex_init(&rx_init_mutex,
|
||||
@ -398,8 +401,6 @@ int rx_Init(u_int port)
|
||||
rxi_InitializeThreadSupport();
|
||||
#endif
|
||||
|
||||
MUTEX_INIT(&rx_stats_mutex, "rx_stats_mutex",MUTEX_DEFAULT,0);
|
||||
|
||||
/* Allocate and initialize a socket for client and perhaps server
|
||||
* connections. */
|
||||
|
||||
@ -414,6 +415,7 @@ int rx_Init(u_int port)
|
||||
#ifdef RX_LOCKS_DB
|
||||
rxdb_init();
|
||||
#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_freePktQ_lock, "rx_freePktQ_lock",MUTEX_DEFAULT,0);
|
||||
MUTEX_INIT(&freeSQEList_lock, "freeSQEList lock",MUTEX_DEFAULT,0);
|
||||
|
Loading…
Reference in New Issue
Block a user