~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_alarm.cc

  • Committer: Brian Aker
  • Date: 2008-12-02 16:33:43 UTC
  • mfrom: (632.1.19 devel)
  • Revision ID: brian@tangent.org-20081202163343-007ifg17p0lvjga7
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
#define reschedule_alarms() pthread_kill(alarm_thread,THR_SERVER_ALARM)
68
68
#endif
69
69
 
70
 
static RETSIGTYPE thread_alarm(int sig __attribute__((unused)));
71
 
 
72
 
static int compare_uint32_t(void *not_used __attribute__((unused)),
73
 
                         unsigned char *a_ptr,unsigned char* b_ptr)
 
70
int compare_uint32_t(void *, unsigned char *a_ptr,unsigned char* b_ptr)
74
71
{
75
72
  uint32_t a=*((uint32_t*) a_ptr),b= *((uint32_t*) b_ptr);
76
73
  return (a < b) ? -1  : (a == b) ? 0 : 1;
323
320
}
324
321
 
325
322
 
326
 
static RETSIGTYPE process_alarm_part2(int sig __attribute__((unused)))
 
323
static RETSIGTYPE process_alarm_part2(int)
327
324
{
328
325
  ALARM *alarm_data;
329
326
 
503
500
*/
504
501
 
505
502
 
506
 
static RETSIGTYPE thread_alarm(int sig)
 
503
RETSIGTYPE thread_alarm(int sig)
507
504
{
508
505
#ifdef MAIN
509
506
  printf("thread_alarm\n"); fflush(stdout);