~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/pool_of_threads.cc

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
 */
304
304
void *libevent_thread_proc(void *ctx)
305
305
{
306
 
  if (my_thread_init())
 
306
  if (internal::my_thread_init())
307
307
  {
308
 
    my_thread_global_end();
309
 
    errmsg_printf(ERRMSG_LVL_ERROR, _("libevent_thread_proc: my_thread_init() failed\n"));
 
308
    internal::my_thread_global_end();
 
309
    errmsg_printf(ERRMSG_LVL_ERROR, _("libevent_thread_proc: internal::my_thread_init() failed\n"));
310
310
    exit(1);
311
311
  }
312
312
 
400
400
  created_threads--;
401
401
  pthread_cond_broadcast(&COND_thread_count);
402
402
  (void) pthread_mutex_unlock(&LOCK_thread_count);
403
 
  my_thread_end();
 
403
  internal::my_thread_end();
404
404
  pthread_exit(0);
405
405
 
406
406
  return NULL;                               /* purify: deadcode */
668
668
                           N_("Size of Pool."),
669
669
                           NULL, NULL, 8, 1, 1024, 0);
670
670
 
671
 
static drizzle_sys_var* system_variables[]= {
 
671
static drizzle_sys_var* sys_variables[]= {
672
672
  DRIZZLE_SYSVAR(size),
673
673
  NULL,
674
674
};
684
684
  init, /* Plugin Init */
685
685
  deinit, /* Plugin Deinit */
686
686
  NULL,   /* status variables */
687
 
  system_variables,   /* system variables */
 
687
  sys_variables,   /* system variables */
688
688
  NULL    /* config options */
689
689
}
690
690
DRIZZLE_DECLARE_PLUGIN_END;