~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_alarm.h

  • Committer: Mark Atwood
  • Date: 2008-10-16 11:33:16 UTC
  • mto: (520.1.13 drizzle)
  • mto: This revision was merged to the branch mainline in revision 530.
  • Revision ID: mark@fallenpegasus.com-20081016113316-ff6jdt31ck90sjdh
an implemention of the errmsg plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
typedef struct st_alarm_info
36
36
{
37
37
  uint32_t next_alarm_time;
38
 
  uint active_alarms;
39
 
  uint max_used_alarms;
 
38
  uint32_t active_alarms;
 
39
  uint32_t max_used_alarms;
40
40
} ALARM_INFO;
41
41
 
42
42
void thr_alarm_info(ALARM_INFO *info);
75
75
  bool malloced;
76
76
} ALARM;
77
77
 
78
 
extern uint thr_client_alarm;
 
78
extern uint32_t thr_client_alarm;
79
79
extern pthread_t alarm_thread;
80
80
 
81
81
#define thr_alarm_init(A) (*(A))=0
82
82
#define thr_alarm_in_use(A) (*(A)!= 0)
83
 
void init_thr_alarm(uint max_alarm);
84
 
void resize_thr_alarm(uint max_alarms);
85
 
bool thr_alarm(thr_alarm_t *alarmed, uint sec, ALARM *buff);
 
83
void init_thr_alarm(uint32_t max_alarm);
 
84
void resize_thr_alarm(uint32_t max_alarms);
 
85
bool thr_alarm(thr_alarm_t *alarmed, uint32_t 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
88
void end_thr_alarm(bool free_structures);
89
 
sig_handler process_alarm(int);
 
89
RETSIGTYPE process_alarm(int);
90
90
#ifndef thr_got_alarm
91
91
bool thr_got_alarm(thr_alarm_t *alrm);
92
92
#endif