~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_lock.c

  • Committer: Brian Aker
  • Date: 2008-08-10 22:14:13 UTC
  • Revision ID: brian@tangent.org-20080810221413-ablfnyr3wgu6fjaw
ulong conversion. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
#include <errno.h>
78
78
 
79
79
bool thr_lock_inited=0;
80
 
ulong locks_immediate = 0L, locks_waited = 0L;
 
80
uint32_t locks_immediate = 0L, locks_waited = 0L;
81
81
ulong table_lock_wait_timeout;
82
82
enum thr_lock_type thr_upgraded_concurrent_insert_lock = TL_WRITE;
83
83
 
1257
1257
static pthread_cond_t COND_thread_count;
1258
1258
static pthread_mutex_t LOCK_thread_count;
1259
1259
static uint thread_count;
1260
 
static ulong sum=0;
 
1260
static uint32_t sum=0;
1261
1261
 
1262
1262
#define MAX_LOCK_COUNT 8
1263
1263
 
1316
1316
        sleep(2);
1317
1317
      else
1318
1318
      {
1319
 
        ulong k;
1320
 
        for (k=0 ; k < (ulong) (tmp-2)*100000L ; k++)
 
1319
        uint32_t k;
 
1320
        for (k=0 ; k < (uint32_t) (tmp-2)*100000L ; k++)
1321
1321
          sum+=k;
1322
1322
      }
1323
1323
    }