ACE_Message_Queue
消息队列的使用已经在前面的ACE_Semaphore中使用到了,其中使用的就是它的典型用法。
ACE_Message_Queue
/**
* @class ACE_Message_Queue
*
* @brief A message queueing facility with parameterized synchronization
* capability. ACE_Message_Queue is modeled after the queueing facilities
* in System V STREAMs.
*
* ACE_Message_Queue is the primary queueing facility for
* messages in the ACE framework. It's one template argument parameterizes
* the queue's synchronization. The argument specifies a synchronization
* strategy. The two main strategies available for ACE_SYNCH_DECL are:
* -# ACE_MT_SYNCH: all operations are thread-safe
* -# ACE_NULL_SYNCH: no synchronization and no locking overhead
*
* All data passing through ACE_Message_Queue is in the form of
* ACE_Me