diff options
author | Steve Huston <shuston@riverace.com> | 2005-08-24 21:18:34 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2005-08-24 21:18:34 +0000 |
commit | f8eaeda072734955eeaf26dfb5f91b07f8ee0fa8 (patch) | |
tree | 99fc4a60f436d6613b490e733168d0e33c08b7ee | |
parent | 0c1c5dc563c41c57e04c94591b44d77985e7f3e3 (diff) | |
download | ATCD-f8eaeda072734955eeaf26dfb5f91b07f8ee0fa8.tar.gz |
ChangeLogTag:Wed Aug 24 17:15:28 2005 Steve Huston <shuston@riverace.com>
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ace/Stream_Modules.h | 21 |
2 files changed, 25 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 187d984c8a0..20c12aeb715 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 24 17:15:28 2005 Steve Huston <shuston@riverace.com> + + * ace/Stream_Modules.h: Added some info about ACE_Stream_Head so + I don't have to keep looking it up ;-) + Wed Aug 24 12:39:04 2005 Chad Elliott <elliott_c@ociweb.com> * bin/fuzz.pl: diff --git a/ace/Stream_Modules.h b/ace/Stream_Modules.h index 064b33753c8..c108ff55603 100644 --- a/ace/Stream_Modules.h +++ b/ace/Stream_Modules.h @@ -24,7 +24,26 @@ /** * @class ACE_Stream_Head * - * @brief Standard module that acts as the head of a stream. + * @brief Standard task that acts as reader or writer at the head of + * an ACE_Stream. + * + * A ACE_Message_Block sent to this task (via its put() hook) triggers + * actions depending on the block type and whether the task is acting as + * a reader or a writer. If the block is of type ACE_Message_Block::MB_IOCTL, + * the block's is assumed to contain (beginning at its rd_ptr()) an + * ACE_IO_Cntl_Msg object and is processed accordingly. This is usually + * used to set the task's message queue high water and/or low water marks. + * + * When the block is not ACE_Message_Block::MB_IOCTL, processing depends on + * the ACE_Stream_Head's role in the module: + * + * - Reader: If the block is of type ACE_Message_Block::MB_FLUSH, the + * canonical_flush() method is called. + * (@see ACE_Stream::canonical_flush().) If the block is any other + * type, it is queued on this task's message queue. It would thus + * be available to caller's reading blocks from the containing + * stream. + * - Writer: The block is passed to the next module in the stream. */ template <ACE_SYNCH_DECL> class ACE_Stream_Head : public ACE_Task<ACE_SYNCH_USE> |