~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_alarm.c

  • Committer: Brian Aker
  • Date: 2008-07-13 18:27:33 UTC
  • Revision ID: brian@tangent.org-20080713182733-3u1et5nrmofi8a8n
my_bool cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
uint thr_client_alarm;
38
38
static int alarm_aborted=1;                     /* No alarm thread */
39
 
my_bool thr_alarm_inited= 0;
40
 
volatile my_bool alarm_thread_running= 0;
 
39
bool thr_alarm_inited= 0;
 
40
volatile bool alarm_thread_running= 0;
41
41
time_t next_alarm_expire_time= ~ (time_t) 0;
42
42
static sig_handler process_alarm_part2(int sig);
43
43
 
147
147
    when the alarm has been given
148
148
*/
149
149
 
150
 
my_bool thr_alarm(thr_alarm_t *alrm, uint sec, ALARM *alarm_data)
 
150
bool thr_alarm(thr_alarm_t *alrm, uint sec, ALARM *alarm_data)
151
151
{
152
152
  time_t now;
153
153
#ifndef USE_ONE_SIGNAL_HAND
154
154
  sigset_t old_mask;
155
155
#endif
156
 
  my_bool reschedule;
 
156
  bool reschedule;
157
157
  struct st_my_thread_var *current_my_thread_var= my_thread_var;
158
158
  DBUG_ENTER("thr_alarm");
159
159
  DBUG_PRINT("enter",("thread: %s  sec: %d",my_thread_name(),sec));
426
426
    - All new alarms will be rescheduled to one second
427
427
*/
428
428
 
429
 
void end_thr_alarm(my_bool free_structures)
 
429
void end_thr_alarm(bool free_structures)
430
430
{
431
431
  DBUG_ENTER("end_thr_alarm");
432
432
  if (alarm_aborted != 1)                       /* If memory not freed */