namespace caspar {
-template <class N, class Func>
-void repeat_n(N times_to_repeat_block, const Func& func)
-{
- for (N i = 0; i < times_to_repeat_block; ++i)
- {
- func();
- }
-}
-
/**
* Counting semaphore modelled after java.util.concurrent.Semaphore
*/
permits_ += permits;
perform_callback_based_acquire();
- repeat_n(permits, [this] { permits_available_.notify_one(); });
+ permits_available_.notify_all();
}
/**