Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-06-28 11:28:14


From: "Greg Colvin" <gcolvin_at_[hidden]>

> From: Peter Dimov <pdimov_at_[hidden]>
> >
> > My limited experience with threads has always followed the pattern
"spawn a
> > worker thread to perform lengthy operation X without blocking the main
> > thread, leaving it responsive." (Minor variations include "to perform
> > background operation Y", like keeping a buffer full of data.)
> >
> > What is the usual 'join' model?
>
> "And join the worker thread when the main thread needs the
> result of the work."

But joining the worker thread blocks the main thread.

--
Peter Dimov
Multi Media Ltd.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk