Exemple #1
0
 Allocator()
   : free_list_((uintptr_t)-1)
   , allocations_(0)
   , in_use_(0)
 {
   lock_.init();
 }
Exemple #2
0
      void open(logger_type type, const char* identifier, logger_level level) {
        lock_.init();

        switch(type) {
        case eSyslog:
          logger_ = new Syslog(identifier);
          break;
        case eConsoleLogger:
          logger_ = new ConsoleLogger(identifier);
          break;
        case eFileLogger:
          logger_ = new FileLogger(identifier);
          break;
        }

        loglevel_ = level;
      }