diff options
Diffstat (limited to 'c/src/librtems++/include/rtems++/rtemsMessageQueue.h')
-rw-r--r-- | c/src/librtems++/include/rtems++/rtemsMessageQueue.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/c/src/librtems++/include/rtems++/rtemsMessageQueue.h b/c/src/librtems++/include/rtems++/rtemsMessageQueue.h index d05968ee8d..9c899ee655 100644 --- a/c/src/librtems++/include/rtems++/rtemsMessageQueue.h +++ b/c/src/librtems++/include/rtems++/rtemsMessageQueue.h @@ -6,7 +6,7 @@ COPYRIGHT (c) 1997 Objective Design Systems Ltd Pty (ODS) All rights reserved (R) Objective Design Systems Ltd Pty - + The license and distribution terms for this file may be found in the file LICENSE in this distribution or at http://www.rtems.com/license/LICENSE. @@ -33,7 +33,7 @@ The fourth constructor allows for the message queue to be created after construction, or to connect to a message queue later. - + ------------------------------------------------------------------------ */ #if !defined(_rtemsMessageQueue_h_) @@ -54,7 +54,7 @@ public: wait_by_priority = RTEMS_PRIORITY }; enum Scope { local = RTEMS_LOCAL, global = RTEMS_GLOBAL }; - + // only the first 4 characters of the name are taken // creates a message queue @@ -70,10 +70,10 @@ public: // copy and default constructors rtemsMessageQueue(const rtemsMessageQueue& message_queue); rtemsMessageQueue(); - + // only the creator's destructor will delete the actual object virtual ~rtemsMessageQueue(); - + // create or destroy (delete) the message queue virtual const rtems_status_code create(const char* name, const rtems_unsigned32 count, @@ -86,7 +86,7 @@ public: const rtemsMessageQueue& operator=(const rtemsMessageQueue& message_queue); virtual const rtems_status_code connect(const char *name, const rtems_unsigned32 node = RTEMS_SEARCH_ALL_NODES); - + // send a message of size from the buffer inline const rtems_status_code send(const void *buffer, const rtems_unsigned32 size); @@ -101,28 +101,28 @@ public: rtems_unsigned32& size, rtems_interval micro_secs = RTEMS_NO_TIMEOUT, bool wait = true); - + // flush a message queue, returning the number of messages dropped inline const rtems_status_code flush(rtems_unsigned32& size); - + // object id, and name const rtems_id id_is() const { return id; } const rtems_name name_is() const { return name; } const char *name_string() const { return name_str; } - + private: // make this object reference an invalid RTEMS object void make_invalid(); - + // message queue name rtems_name name; char name_str[5]; - + // owner, true if this object owns the message queue // will delete the message queue when it destructs bool owner; - + // the rtems id, object handle rtems_id id; }; |