SYNCHRONIZED_VAR

Disambiguate the name var by concatenating the line number of the original point of expansion. This avoids shadowing warnings for nested SYNCHRONIZEDs. The name is consistent if used multiple times within another macro. Only for internal use.

Synopsis

Declared in <folly/Synchronized.h>

#define SYNCHRONIZED_VAR(var)

Parameters

NameDescription
varThe base name to disambiguate.