summaryrefslogtreecommitdiff
path: root/ACE/ace/Message_Queue_T.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-12-09 13:40:11 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-12-09 13:40:11 +0100
commit900d6095f897d8c69fea522221675bdec225dbba (patch)
treec260d476fc15fc89f0733b639c11ace3a019d462 /ACE/ace/Message_Queue_T.h
parent68af84b8a645ccf8f2d45ba545ec0acf84bc8335 (diff)
downloadATCD-900d6095f897d8c69fea522221675bdec225dbba.tar.gz
Remove redundant void arg
Diffstat (limited to 'ACE/ace/Message_Queue_T.h')
-rw-r--r--ACE/ace/Message_Queue_T.h122
1 files changed, 61 insertions, 61 deletions
diff --git a/ACE/ace/Message_Queue_T.h b/ACE/ace/Message_Queue_T.h
index af38d7b05cb..6bc74f3e191 100644
--- a/ACE/ace/Message_Queue_T.h
+++ b/ACE/ace/Message_Queue_T.h
@@ -112,10 +112,10 @@ public:
/// @sa flush().
///
/// @retval The number of messages released from the queue; -1 on error.
- virtual int close (void);
+ virtual int close ();
/// Releases all resources from the message queue and marks it deactivated.
- virtual ~ACE_Message_Queue (void);
+ virtual ~ACE_Message_Queue ();
/**
* Releases all resources from the message queue but does not mark it
@@ -124,7 +124,7 @@ public:
*
* @return The number of messages flushed; -1 on error.
*/
- virtual int flush (void);
+ virtual int flush ();
/**
* Release all resources from the message queue but do not mark it
@@ -135,7 +135,7 @@ public:
*
* @return The number of messages flushed.
*/
- virtual int flush_i (void);
+ virtual int flush_i ();
/** @name Enqueue and dequeue methods
*
@@ -355,26 +355,26 @@ public:
//@{
/// True if queue is full, else false.
- virtual bool is_full (void);
+ virtual bool is_full ();
/// True if queue is empty, else false.
- virtual bool is_empty (void);
+ virtual bool is_empty ();
/**
* Number of total bytes on the queue, i.e., sum of the message
* block sizes.
*/
- virtual size_t message_bytes (void);
+ virtual size_t message_bytes ();
/**
* Number of total length on the queue, i.e., sum of the message
* block lengths.
*/
- virtual size_t message_length (void);
+ virtual size_t message_length ();
/**
* Number of total messages on the queue.
*/
- virtual size_t message_count (void);
+ virtual size_t message_count ();
// = Manual changes to these stats (used when queued message blocks
// change size or lengths).
@@ -399,7 +399,7 @@ public:
/**
* Get high watermark.
*/
- virtual size_t high_water_mark (void);
+ virtual size_t high_water_mark ();
/**
* Set the high watermark, which determines how many bytes can be
* stored in a queue before it's considered "full."
@@ -409,7 +409,7 @@ public:
/**
* Get low watermark.
*/
- virtual size_t low_water_mark (void);
+ virtual size_t low_water_mark ();
/**
* Set the low watermark, which determines how many bytes must be in
* the queue before supplier threads are allowed to enqueue
@@ -433,13 +433,13 @@ public:
* ESHUTDOWN. Returns WAS_INACTIVE if queue was inactive before the
* call and WAS_ACTIVE if queue was active before the call.
*/
- virtual int deactivate (void);
+ virtual int deactivate ();
/**
* Reactivate the queue so that threads can enqueue and dequeue
* messages again. Returns the state of the queue before the call.
*/
- virtual int activate (void);
+ virtual int activate ();
/**
* Pulse the queue to wake up any waiting threads. Changes the
@@ -448,15 +448,15 @@ public:
*
* @return The queue's state before this call.
*/
- virtual int pulse (void);
+ virtual int pulse ();
/// Returns the current state of the queue, which can be one of
/// ACTIVATED, DEACTIVATED, or PULSED.
- virtual int state (void);
+ virtual int state ();
/// Returns true if the state of the queue is <DEACTIVATED>,
/// but false if the queue's is <ACTIVATED> or <PULSED>.
- virtual int deactivated (void);
+ virtual int deactivated ();
//@}
/** @name Notification strategy methods
@@ -473,28 +473,28 @@ public:
* guarantee that the queue will be still be non-empty by the time
* the notification occurs.
*/
- virtual int notify (void);
+ virtual int notify ();
/// Get the notification strategy for the <Message_Queue>
- virtual ACE_Notification_Strategy *notification_strategy (void);
+ virtual ACE_Notification_Strategy *notification_strategy ();
/// Set the notification strategy for the <Message_Queue>
virtual void notification_strategy (ACE_Notification_Strategy *s);
//@}
/// Returns a reference to the lock used by the ACE_Message_Queue.
- virtual ACE_SYNCH_MUTEX_T &lock (void);
+ virtual ACE_SYNCH_MUTEX_T &lock ();
/// Get the current time of day according to the queue's TIME_POLICY.
/// Allows users to initialize timeout values using correct time policy.
- ACE_Time_Value_T<TIME_POLICY> gettimeofday (void) const;
+ ACE_Time_Value_T<TIME_POLICY> gettimeofday () const;
/// Allows applications to control how the timer queue gets the time
/// of day.
void set_time_policy (TIME_POLICY const & time_policy);
/// Dump the state of an object.
- virtual void dump (void) const;
+ virtual void dump () const;
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
@@ -537,10 +537,10 @@ protected:
// = Check the boundary conditions (assumes locks are held).
/// True if queue is full, else false.
- virtual bool is_full_i (void);
+ virtual bool is_full_i ();
/// True if queue is empty, else false.
- virtual bool is_empty_i (void);
+ virtual bool is_empty_i ();
// = Implementation of the public <activate> and <deactivate> methods.
@@ -563,7 +563,7 @@ protected:
virtual int deactivate_i (int pulse = 0);
/// Activate the queue.
- virtual int activate_i (void);
+ virtual int activate_i ();
// = Helper methods to factor out common #ifdef code.
@@ -574,10 +574,10 @@ protected:
virtual int wait_not_empty_cond (ACE_Time_Value *timeout);
/// Inform any threads waiting to enqueue that they can procede.
- virtual int signal_enqueue_waiters (void);
+ virtual int signal_enqueue_waiters ();
/// Inform any threads waiting to dequeue that they can procede.
- virtual int signal_dequeue_waiters (void);
+ virtual int signal_dequeue_waiters ();
/// Pointer to head of ACE_Message_Block list.
ACE_Message_Block *head_;
@@ -657,14 +657,14 @@ public:
int next (ACE_Message_Block *&entry);
/// Returns 1 when all items have been seen, else 0.
- int done (void) const;
+ int done () const;
/// Move forward by one element in the queue. Returns 0 when all the
/// items in the set have been seen, else 1.
- int advance (void);
+ int advance ();
/// Dump the state of an object.
- void dump (void) const;
+ void dump () const;
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
@@ -695,14 +695,14 @@ public:
int next (ACE_Message_Block *&entry);
/// Returns 1 when all items have been seen, else 0.
- int done (void) const;
+ int done () const;
/// Move forward by one element in the queue. Returns 0 when all the
/// items in the set have been seen, else 1.
- int advance (void);
+ int advance ();
/// Dump the state of an object.
- void dump (void) const;
+ void dump () const;
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
@@ -793,7 +793,7 @@ public:
ACE_Notification_Strategy * = 0);
/// Close down the message queue and release all resources.
- virtual ~ACE_Dynamic_Message_Queue (void);
+ virtual ~ACE_Dynamic_Message_Queue ();
/**
* Detach all messages with status given in the passed flags from
@@ -817,7 +817,7 @@ public:
ACE_Time_Value *timeout = 0);
/// Dump the state of the queue.
- virtual void dump (void) const;
+ virtual void dump () const;
/**
* Just call priority enqueue method: tail enqueue semantics for dynamic
@@ -1055,10 +1055,10 @@ public:
/// @sa flush().
///
/// @retval The number of messages released from the queue; -1 on error.
- virtual int close (void);
+ virtual int close ();
/// Releases all resources from the message queue and marks it deactivated.
- virtual ~ACE_Message_Queue_Ex (void);
+ virtual ~ACE_Message_Queue_Ex ();
/**
* Releases all resources from the message queue but does not mark it
@@ -1067,7 +1067,7 @@ public:
*
* @return The number of messages flushed; -1 on error.
*/
- virtual int flush (void);
+ virtual int flush ();
/**
* Release all resources from the message queue but do not mark it
@@ -1078,7 +1078,7 @@ public:
*
* @return The number of messages flushed.
*/
- virtual int flush_i (void);
+ virtual int flush_i ();
/** @name Enqueue and dequeue methods
*
@@ -1258,25 +1258,25 @@ public:
//@{
/// True if queue is full, else false.
- virtual bool is_full (void);
+ virtual bool is_full ();
/// True if queue is empty, else false.
- virtual bool is_empty (void);
+ virtual bool is_empty ();
/**
* Number of total bytes on the queue, i.e., sum of the message
* block sizes.
*/
- virtual size_t message_bytes (void);
+ virtual size_t message_bytes ();
/**
* Number of total length on the queue, i.e., sum of the message
* block lengths.
*/
- virtual size_t message_length (void);
+ virtual size_t message_length ();
/**
* Number of total messages on the queue.
*/
- virtual size_t message_count (void);
+ virtual size_t message_count ();
// = Manual changes to these stats (used when queued message blocks
// change size or lengths).
@@ -1300,7 +1300,7 @@ public:
/**
* Get high watermark.
*/
- virtual size_t high_water_mark (void);
+ virtual size_t high_water_mark ();
/**
* Set the high watermark, which determines how many bytes can be
* stored in a queue before it's considered "full."
@@ -1310,7 +1310,7 @@ public:
/**
* Get low watermark.
*/
- virtual size_t low_water_mark (void);
+ virtual size_t low_water_mark ();
/**
* Set the low watermark, which determines how many bytes must be in
* the queue before supplier threads are allowed to enqueue
@@ -1334,13 +1334,13 @@ public:
* ESHUTDOWN. Returns WAS_INACTIVE if queue was inactive before the
* call and WAS_ACTIVE if queue was active before the call.
*/
- virtual int deactivate (void);
+ virtual int deactivate ();
/**
* Reactivate the queue so that threads can enqueue and dequeue
* messages again. Returns the state of the queue before the call.
*/
- virtual int activate (void);
+ virtual int activate ();
/**
* Pulse the queue to wake up any waiting threads. Changes the
@@ -1349,15 +1349,15 @@ public:
*
* @retval The queue's state before this call.
*/
- virtual int pulse (void);
+ virtual int pulse ();
/// Returns the current state of the queue, which can be one of
/// ACTIVATED, DEACTIVATED, or PULSED.
- virtual int state (void);
+ virtual int state ();
/// Returns true if the state of the queue is DEACTIVATED,
/// but false if the queue's state is ACTIVATED or PULSED.
- virtual int deactivated (void);
+ virtual int deactivated ();
//@}
/** @name Notification strategy methods
@@ -1374,17 +1374,17 @@ public:
* guarantee that the queue will be still be non-empty by the time
* the notification occurs.
*/
- virtual int notify (void);
+ virtual int notify ();
/// Get the notification strategy for the <Message_Queue>
- virtual ACE_Notification_Strategy *notification_strategy (void);
+ virtual ACE_Notification_Strategy *notification_strategy ();
/// Set the notification strategy for the <Message_Queue>
virtual void notification_strategy (ACE_Notification_Strategy *s);
//@}
/// Returns a reference to the lock used by the ACE_Message_Queue_Ex.
- virtual ACE_SYNCH_MUTEX_T &lock (void);
+ virtual ACE_SYNCH_MUTEX_T &lock ();
/// Get the current time of day according to the queue's TIME_POLICY.
/// Allows users to initialize timeout
@@ -1395,7 +1395,7 @@ public:
void set_time_policy (TIME_POLICY const & time_policy);
/// Dump the state of an object.
- virtual void dump (void) const;
+ virtual void dump () const;
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
@@ -1422,14 +1422,14 @@ public:
int next (ACE_MESSAGE_TYPE *&entry);
/// Returns 1 when all items have been seen, else 0.
- int done (void) const;
+ int done () const;
/// Move forward by one element in the queue. Returns 0 when all the
/// items in the set have been seen, else 1.
- int advance (void);
+ int advance ();
/// Dump the state of an object.
- void dump (void) const;
+ void dump () const;
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
@@ -1456,14 +1456,14 @@ public:
int next (ACE_MESSAGE_TYPE *&entry);
/// Returns 1 when all items have been seen, else 0.
- int done (void) const;
+ int done () const;
/// Move forward by one element in the queue. Returns 0 when all the
/// items in the set have been seen, else 1.
- int advance (void);
+ int advance ();
/// Dump the state of an object.
- void dump (void) const;
+ void dump () const;
/// Declare the dynamic allocation hooks.
ACE_ALLOC_HOOK_DECLARE;
@@ -1514,7 +1514,7 @@ public:
ACE_Notification_Strategy * ns = 0);
/// Close down the message queue and release all resources.
- virtual ~ACE_Message_Queue_Ex_N (void);
+ virtual ~ACE_Message_Queue_Ex_N ();
/**
* Enqueue one or more @c ACE_MESSAGE_TYPE objects at the head of the queue.