Beispiel #1
0
 void checked_head_all_failable(Predicate cont_pred) {
   if (! lock().owns_lock()) throw LockError();
   if (! head(cont_pred)) throw CondError();
 }
Beispiel #2
0
 void checked_head_all_failable_timed(Predicate cont_pred, const Time &time) {
   if (! lock().owns_lock()) throw LockError();
   if (! timed_head(cont_pred, time)) throw CondError();
 }
Beispiel #3
0
 void checked_head_failable_lock(Predicate cont_pred) {
   if (! lock().owns_lock()) throw LockError();
   head(cont_pred);
 }