#include <Future_Set.h>
Inheritance diagram for ACE_Future_Set< T >:
|
|
|
|
|
|
|
|
|
|
|
|
|
Constructor.
|
|
Destructor.
|
|
|
|
Enqueus the given ACE_Future into this objects queue when it is readable. Returns 0 if the future is successfully inserted, 1 if the future is already inserted, and -1 if failures occur. |
|
Return 1 if their are no ACE_Future objects left on its queue and 0 otherwise. When an ACE_Future_Set has no ACE_Future>subjects to observe it is empty. The ACE_Future_Set is in the empty state when either the caller(s) have retrieved every readable ACE_Future subject assigned the ACE_Future_Set via the ACE_Future_Set::next_readable() method, or when the ACE_Future_Set has not been assigned any subjects. |
|
Wait up to <tv> time to get the <value>. Note that <tv> must be specified in absolute time rather than relative time.); get the next <ACE_Future> that is readable. If <tv> = 0, the will block forever. If a readable future becomes available, then the input <ACE_Future> object param will be assigned with it and 1 will be returned. If the <ACE_Future_Set> is empty (i.e. see definition of <ACE_Future_Set::is_empty>), then 0 is returned. When a readable <ACE_Future> object is retrieved via the <ACE_Future_Set::next_readable> method, the <ACE_Future_Set> will remove that <ACE_Future> object from its list of subjects. |
|
|
|
Called by the ACE_Future subject in which we are subscribed to when its value is written to. Implements ACE_Future_Observer< T >. |
|
Declare the dynamic allocation hooks.
Reimplemented from ACE_Future_Observer< T >. |
|
Keeps track of whether we need to delete the message queue.
|
|
Map of <ACE_Futures>, subjects, which have not been written to by client's writer thread. |
|
Message queue for notifying the reader thread of <ACE_Futures> which have been written to by client's writer thread. |