Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
sdo_log.h
Go to the documentation of this file.
1#pragma once
2
3namespace mm::comm {
4
13inline thread_local bool sdoLogQuiet = false;
14
18 public:
19 ScopedQuietSdoLog() : previous_(sdoLogQuiet) { sdoLogQuiet = true; }
21
24
25 private:
26 bool previous_;
27};
28
29} // namespace mm::comm
RAII guard that suppresses per-transfer SDO debug logging for its scope (and restores the previous st...
Definition sdo_log.h:17
ScopedQuietSdoLog & operator=(const ScopedQuietSdoLog &)=delete
~ScopedQuietSdoLog()
Definition sdo_log.h:20
ScopedQuietSdoLog(const ScopedQuietSdoLog &)=delete
ScopedQuietSdoLog()
Definition sdo_log.h:19
Definition al_status_codes.cc:5
thread_local bool sdoLogQuiet
When true on the calling thread, a driver demotes its per-transfer SDO debug logs to trace....
Definition sdo_log.h:13