8 // this exists in C++11, but we have a richer constructor
9 template <typename BasicLockable>
13 template <class... Args>
14 lock_guard(BasicLockable *l, Args &&... args)
18 l->lock(std::forward<Args>(args)...);
21 template <class... Args>
22 lock_guard(BasicLockable &l, Args &&... args)
25 l.lock(std::forward<Args>(args)...);
37 #endif /* _LOCK_GUARD_H_ */