Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXCompletion Class Reference

Notify object. More...

#include <FXConcurrent.h>

List of all members.

Public Member Functions

 FXCompletion ()
 Create completion object.
void wait ()
 Wait till associated tasks are done.
FXbool done () const
 Return true if associated tasks are done.
virtual ~FXCompletion ()
 Destroy completion object.

Friends

class FXConcurrent

Detailed Description

Notify object.

An optional notify object may be passed to FXConcurrent::execute(). When argc new tasks are started, the expected count of completions is incremented by argc. Upon the completion of each task, the expected count is decremented by one; when the count reaches zero, the notify() routine is called. The default implemenation of notify() does nothing. You should subclass Completion and reimplement notify() appropriately.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp