| H A D | cleanup.h | 394 #define DEFINE_GUARD(_name, _type, _lock, _unlock) \ 396 DEFINE_CLASS(_name, _type, _unlock, ({ _lock; _T; }), _type _T); \ 476 * As above, both _lock and _unlock are statements, except this time '_T' will 480 #define __DEFINE_UNLOCK_GUARD(_name, _type, _unlock, ...) \ 490 _unlock; \ 515 #define DECLARE_LOCK_GUARD_0_ATTRS(_name, _lock, _unlock) \ 517 static inline void class_##_name##_destructor(class_##_name##_t *_T) _unlock; 527 * function that does nothing at runtime, but has the "_unlock" attribute to 544 * as expected). The "_unlock" attribute receives a pointer to the auxiliary 548 #define DECLARE_LOCK_GUARD_1_ATTRS(_name, _lock, _unlock) \ 392 DEFINE_GUARD(_name,_type,_lock,_unlock) global() argument 478 __DEFINE_UNLOCK_GUARD(_name,_type,_unlock,...) global() argument 513 DECLARE_LOCK_GUARD_0_ATTRS(_name,_lock,_unlock) global() argument 546 DECLARE_LOCK_GUARD_1_ATTRS(_name,_lock,_unlock) global() argument 554 DEFINE_LOCK_GUARD_1(_name,_type,_lock,_unlock,...) global() argument 559 DEFINE_LOCK_GUARD_0(_name,_lock,_unlock,...) global() argument [all...] |