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)
| r5704 | r5712 | |
|---|---|---|
| 1362 | 1362 | |
| 1363 | 1363 | int cw_utils_init(void) |
| 1364 | 1364 | { |
| 1365 | #ifndef linux | |
| 1366 | pthread_mutex_init(&randomlock, &global_mutexattr_simple); | |
| 1367 | #endif | |
| 1368 | ||
| 1369 | 1365 | global_sched_param_default.sched_priority = 0; |
| 1370 | 1366 | global_sched_param_rr.sched_priority = 50; |
| 1371 | 1367 | |
| --- | --- | |
| 1420 | 1416 | |
| 1421 | 1417 | pthread_key_create(&global_pthread_key_thread_info, NULL); |
| 1422 | 1418 | |
| 1419 | #ifndef linux | |
| 1420 | pthread_mutex_init(&randomlock, &global_mutexattr_simple); | |
| 1421 | #endif | |
| 1422 | ||
| 1423 | 1423 | base64_init(); |
| 1424 | 1424 | return 0; |
| 1425 | 1425 | } |
![Home changeset 5712 [home]](/images/logo.png?1180520111)

RSS Feeds