Class NoMutex

Synopsis

#include <src/easylogging++.h>

class NoMutex : base::NoCopy

Description

Mutex wrapper used when multi-threading is disabled.

Inheritance

Ancestors: NoCopy

Methods

NoMutex
lock
try_lock
unlock

Source

Lines 981-989 in src/easylogging++.h.

class NoMutex : base::NoCopy {
 public:
  NoMutex(void) {}
  inline void lock(void) {}
  inline bool try_lock(void) {
    return true;
  }
  inline void unlock(void) {}
};





Add Discussion

Log in to comment