~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_manager.cc

Merging trunk changes from over weekend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
bool mysql_manager_submit(void (*action)())
41
41
{
42
 
  bool result= FALSE;
 
42
  bool result= false;
43
43
  struct handler_cb * volatile *cb;
44
44
  pthread_mutex_lock(&LOCK_manager);
45
45
  cb= &cb_list;
49
49
  {
50
50
    *cb= (struct handler_cb *)my_malloc(sizeof(struct handler_cb), MYF(MY_WME));
51
51
    if (!*cb)
52
 
      result= TRUE;
 
52
      result= true;
53
53
    else
54
54
    {
55
55
      (*cb)->next= NULL;
65
65
  int error = 0;
66
66
  ulong status;
67
67
  struct timespec abstime;
68
 
  bool reset_flush_time = TRUE;
 
68
  bool reset_flush_time = true;
69
69
  struct handler_cb *cb= NULL;
70
70
  my_thread_init();
71
71
  DBUG_ENTER("handle_manager");
85
85
      if (reset_flush_time)
86
86
      {
87
87
        set_timespec(abstime, flush_time);
88
 
        reset_flush_time = FALSE;
 
88
        reset_flush_time= false;
89
89
      }
90
90
      while (!manager_status && (!error || error == EINTR) && !abort_loop)
91
91
        error= pthread_cond_timedwait(&COND_manager, &LOCK_manager, &abstime);
111
111
    {
112
112
      flush_tables();
113
113
      error = 0;
114
 
      reset_flush_time = TRUE;
 
114
      reset_flush_time = true;
115
115
    }
116
116
 
117
117
    while (cb)