~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_thr_init.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <mystrings/m_string.h>
23
23
#include <signal.h>
24
24
 
25
 
uint thd_lib_detected= 0;
 
25
uint32_t thd_lib_detected= 0;
26
26
 
27
27
#ifdef USE_TLS
28
28
pthread_key(struct st_my_thread_var*, THR_KEY_mysys);
33
33
                THR_LOCK_lock,THR_LOCK_isam,THR_LOCK_myisam,THR_LOCK_heap,
34
34
                THR_LOCK_net, THR_LOCK_charset, THR_LOCK_threads, THR_LOCK_time;
35
35
pthread_cond_t  THR_COND_threads;
36
 
uint            THR_thread_count= 0;
37
 
uint            my_thread_end_wait_time= 5;
 
36
uint32_t            THR_thread_count= 0;
 
37
uint32_t                my_thread_end_wait_time= 5;
38
38
#if !defined(HAVE_LOCALTIME_R) || !defined(HAVE_GMTIME_R)
39
39
pthread_mutex_t LOCK_localtime_r;
40
40
#endif
66
66
#endif /* TARGET_OS_LINUX */
67
67
 
68
68
 
69
 
static uint get_thread_lib(void);
 
69
static uint32_t get_thread_lib(void);
70
70
 
71
71
/*
72
72
  initialize thread environment
358
358
  return my_thread_var->id;
359
359
}
360
360
 
361
 
static uint get_thread_lib(void)
 
361
static uint32_t get_thread_lib(void)
362
362
{
363
363
#ifdef _CS_GNU_LIBPTHREAD_VERSION
364
364
  char buff[64];