reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
#include "a.h"

struct X {
  mutex m;
  int n __attribute__((guarded_by(m)));

  void f();
};

inline void unlock(X &x) __attribute__((unlock_function(x.m))) { x.m.unlock(); }