~markwright/scalestack/zeromq

« back to all changes in this revision

Viewing changes to scalestack/kernel/module.cc

  • Committer: Eric Day
  • Date: 2011-01-25 20:51:51 UTC
  • mto: This revision was merged to the branch mainline in revision 63.
  • Revision ID: eday@oddments.org-20110125205151-rlam04duepoczo9v
Moved common into kernel, other related cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#include <sys/types.h>
39
39
#include <unistd.h>
40
40
 
41
 
#include <scalestack/common/delete_pointer.h>
42
41
#include <scalestack/kernel/core.h>
 
42
#include <scalestack/kernel/delete_pointer.h>
43
43
#include <scalestack/kernel/module.h>
44
44
#include <scalestack/kernel/option.h>
45
45
 
60
60
 
61
61
  _unload();
62
62
 
63
 
  for_each(_options.begin(), _options.end(), common::delete_pointer());
 
63
  for_each(_options.begin(), _options.end(), delete_pointer());
64
64
 
65
65
  log_info(_("Destructed"));
66
66
}
204
204
    return;
205
205
 
206
206
  _need_run = true;
207
 
  _core._run_notification.send();
 
207
  _core.notify();
208
208
}
209
209
 
210
210
string module::normalize_name(const std::string& name)
480
480
  if (_is_started)
481
481
  {
482
482
    _need_reconfigure = true;
483
 
    _core._run_notification.send();
 
483
    _core.notify();
484
484
  }
485
485
}
486
486
 
498
498
{
499
499
  char message[SCALESTACK_MAX_MESSAGE_SIZE];
500
500
  vsnprintf(message, SCALESTACK_MAX_MESSAGE_SIZE, format, arguments);
501
 
  throw common::exception(_name.c_str(), message);
 
501
  throw kernel::exception(_name.c_str(), message);
502
502
}
503
503
 
504
504
void module::_log_message(log::level log_level,