MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / NoMutex

Class NoMutex

include/thundersvm/util/log.h:1032–1040  ·  view source on GitHub ↗

@brief Mutex wrapper used when multi-threading is disabled.

Source from the content-addressed store, hash-verified

1030 namespace internal {
1031/// @brief Mutex wrapper used when multi-threading is disabled.
1032 class NoMutex : base::NoCopy {
1033 public:
1034 NoMutex(void) {}
1035 inline void lock(void) {}
1036 inline bool try_lock(void) {
1037 return true;
1038 }
1039 inline void unlock(void) {}
1040 };
1041/// @brief Lock guard wrapper used when multi-threading is disabled.
1042 template <typename Mutex>
1043 class NoScopedLock : base::NoCopy {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected