
12 Jan
2007
12 Jan
'07
7:46 p.m.
By the way, what about extending barrier so that it can use any functor not only waiting_threads == m_threshold? At least timed_barrier, which unblocks when (waiting_threads == m_threshold || time_since_first_wait > m_time_threshold), and maybe unblocks in destructor. So it'll implement scenario: do the work in groups, i.e. not very often. That can be for example some time-expensive background cached work.