Changeset 5712

Initialize the randomlock *after* the mutexattr has been initialized

Comitted by:  mjagdis
Date:  Jun 04 2010 * 23:11 (about 1 year ago)

Affected files:

callweaver/trunk/corelib/utils.c (unified diff)

r5704r5712
13621362
13631363 int cw_utils_init(void)
13641364 {
1365 #ifndef linux
1366 pthread_mutex_init(&randomlock, &global_mutexattr_simple);
1367 #endif
1368
13691365 global_sched_param_default.sched_priority = 0;
13701366 global_sched_param_rr.sched_priority = 50;
13711367
------
14201416
14211417 pthread_key_create(&global_pthread_key_thread_info, NULL);
14221418
1419 #ifndef linux
1420 pthread_mutex_init(&randomlock, &global_mutexattr_simple);
1421 #endif
1422
14231423 base64_init();
14241424 return 0;
14251425 }