~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.cc

  • Committer: Brian Aker
  • Date: 2011-01-06 05:17:09 UTC
  • Revision ID: brian@tangent.org-20110106051709-oa0se8ur02uc6i9o
Added native functions into the function table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    cout << _("In File: ") << *::boost::get_error_info<boost::throw_file>(ex) << endl;
87
87
    cout << _("On Line: ") << *::boost::get_error_info<boost::throw_line>(ex) << endl;
88
88
 
89
 
    TransactionServices::singleton().sendShutdownEvent(*session.get());
 
89
    TransactionServices::singleton().sendShutdownEvent(session.get());
90
90
  }
91
91
  // @todo remove hard spin by disconnection the session first from the
92
92
  // thread.
106
106
 
107
107
  if (err != 0)
108
108
  {
109
 
    errmsg_printf(error::ERROR, _("Unable to get thread stack size"));
 
109
    errmsg_printf(ERRMSG_LVL_ERROR, _("Unable to get thread stack size\n"));
110
110
    my_thread_stack_size= 524288; // At the time of the writing of this code, this was OSX's
111
111
  }
112
112
 
176
176
void MultiThreadScheduler::killSessionNow(Session::shared_ptr &session)
177
177
{
178
178
  killSession(session.get());
179
 
 
180
 
  session->disconnect();
181
 
 
182
179
  /* Locks LOCK_thread_count and deletes session */
183
180
  Session::unlink(session);
184
181
  thread_count.decrement();
208
205
{
209
206
  context("max-threads",
210
207
          po::value<max_threads_constraint>(&max_threads)->default_value(2048),
211
 
          _("Maximum number of user threads available."));
 
208
          N_("Maximum number of user threads available."));
212
209
}
213
210
 
214
211
DRIZZLE_DECLARE_PLUGIN
220
217
  "One Thread Per Session Scheduler",
221
218
  PLUGIN_LICENSE_GPL,
222
219
  init, /* Plugin Init */
223
 
  NULL,   /* depends */
 
220
  NULL,   /* system variables */
224
221
  init_options    /* config options */
225
222
}
226
223
DRIZZLE_DECLARE_PLUGIN_END;