~drizzle-pbxt/drizzle/drizzle-pbxt

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2009-04-03 22:43:11 UTC
  • mfrom: (971.3.2 eday-dev)
  • Revision ID: brian@tangent.org-20090403224311-64bljevy5l67dknx
Tags: 2009.04.973
Merge Eday

Show diffs side-by-side

added added

removed removed

Lines of Context:
384
384
 
385
385
pthread_key_t THR_Mem_root;
386
386
pthread_key_t THR_Session;
387
 
pthread_mutex_t LOCK_drizzleclient_create_db, 
 
387
pthread_mutex_t LOCK_create_db, 
388
388
                LOCK_open, 
389
389
                LOCK_thread_count,
390
390
                LOCK_status,
637
637
 
638
638
static void clean_up_mutexes()
639
639
{
640
 
  (void) pthread_mutex_destroy(&LOCK_drizzleclient_create_db);
 
640
  (void) pthread_mutex_destroy(&LOCK_create_db);
641
641
  (void) pthread_mutex_destroy(&LOCK_lock_db);
642
642
  (void) pthread_mutex_destroy(&LOCK_open);
643
643
  (void) pthread_mutex_destroy(&LOCK_thread_count);
1516
1516
 
1517
1517
static int init_thread_environment()
1518
1518
{
1519
 
  (void) pthread_mutex_init(&LOCK_drizzleclient_create_db,MY_MUTEX_INIT_SLOW);
 
1519
  (void) pthread_mutex_init(&LOCK_create_db,MY_MUTEX_INIT_SLOW);
1520
1520
  (void) pthread_mutex_init(&LOCK_lock_db,MY_MUTEX_INIT_SLOW);
1521
1521
  (void) pthread_mutex_init(&LOCK_open, NULL);
1522
1522
  (void) pthread_mutex_init(&LOCK_thread_count,MY_MUTEX_INIT_FAST);