@brief Mutex wrapper used when multi-threading is disabled.
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected