~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/thr_alarm.h

MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#define USE_ALARM_THREAD
47
47
#undef USE_ONE_SIGNAL_HAND
48
48
 
49
 
typedef my_bool thr_alarm_t;
50
 
typedef my_bool ALARM;
 
49
typedef bool thr_alarm_t;
 
50
typedef bool ALARM;
51
51
 
52
52
#define thr_alarm_init(A) (*(A))=0
53
53
#define thr_alarm_in_use(A) (*(A) != 0)
72
72
  thr_alarm_entry alarmed;              /* set when alarm is due */
73
73
  pthread_t thread;
74
74
  my_thread_id thread_id;
75
 
  my_bool malloced;
 
75
  bool malloced;
76
76
} ALARM;
77
77
 
78
78
extern uint thr_client_alarm;
82
82
#define thr_alarm_in_use(A) (*(A)!= 0)
83
83
void init_thr_alarm(uint max_alarm);
84
84
void resize_thr_alarm(uint max_alarms);
85
 
my_bool thr_alarm(thr_alarm_t *alarmed, uint sec, ALARM *buff);
 
85
bool thr_alarm(thr_alarm_t *alarmed, uint sec, ALARM *buff);
86
86
void thr_alarm_kill(my_thread_id thread_id);
87
87
void thr_end_alarm(thr_alarm_t *alarmed);
88
 
void end_thr_alarm(my_bool free_structures);
 
88
void end_thr_alarm(bool free_structures);
89
89
sig_handler process_alarm(int);
90
90
#ifndef thr_got_alarm
91
 
my_bool thr_got_alarm(thr_alarm_t *alrm);
 
91
bool thr_got_alarm(thr_alarm_t *alrm);
92
92
#endif
93
93
 
94
94