Initialize some mutexes and condition variables for pthreaded ubik.
FIXES 124977
Change-Id: I95833c5e277183e3c912e1b2fde2b02f88cff0c9
Reviewed-on: http://gerrit.openafs.org/1253
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
*dbase = tdb;
ubik_dbase = tdb; /* for now, only one db per server; can fix later when we have names for the other dbases */
+#ifdef AFS_PTHREAD_ENV
+ assert(pthread_cond_init(&tdb->version_cond, NULL) == 0);
+ assert(pthread_cond_init(&tdb->flags_cond, NULL) == 0);
+ assert(pthread_mutex_init(&tdb->version_mutex, NULL) == 0);
+ assert(pthread_mutex_init(&tdb->flags_mutex, NULL) == 0);
+#endif /* AFS_PTHREAD_ENV */
+
/* initialize RX */
/* the following call is idempotent so when/if it got called earlier,