RCS file: /cvsroot/boost/boost/boost/interprocess/ipc/message_queue.hpp,v
retrieving revision 1.9
diff -u -u -r1.9 message_queue.hpp
|
|
|
|
| 92 | 92 | |
| 93 | 93 | /*!Sends a message stored in buffer "buffer" with size "buffer_size" in the |
| 94 | 94 | message queue with priority "priority". If the message queue is full |
| 95 | | the sender is retries until time "abs_time" is reached. Returns true if |
| | 95 | the sender retries until time "abs_time" is reached. Returns true if |
| 96 | 96 | the message has been successfully sent. Returns false if timeout is reached. |
| 97 | 97 | Throws interprocess_error on error.*/ |
| 98 | 98 | bool timed_send (const void *buffer, std::size_t buffer_size, |
| … |
… |
|
| 100 | 100 | |
| 101 | 101 | /*!Receives a message from the message queue. The message is stored in buffer |
| 102 | 102 | "buffer", which has size "buffer_size". The received message has size |
| 103 | | "recvd_size" and priority "priority". If the message queue is full |
| 104 | | the sender is blocked. Throws interprocess_error on error.*/ |
| | 103 | "recvd_size" and priority "priority". If the message queue is empty |
| | 104 | the receiver is blocked. Throws interprocess_error on error.*/ |
| 105 | 105 | void receive (void *buffer, std::size_t buffer_size, |
| 106 | 106 | std::size_t &recvd_size,unsigned int &priority); |
| 107 | 107 | |
| 108 | 108 | /*!Receives a message from the message queue. The message is stored in buffer |
| 109 | 109 | "buffer", which has size "buffer_size". The received message has size |
| 110 | | "recvd_size" and priority "priority". If the message queue is full |
| 111 | | the sender is not blocked and returns false, otherwise returns true. |
| | 110 | "recvd_size" and priority "priority". If the message queue is empty |
| | 111 | the receiver is not blocked and returns false, otherwise returns true. |
| 112 | 112 | Throws interprocess_error on error.*/ |
| 113 | 113 | bool try_receive (void *buffer, std::size_t buffer_size, |
| 114 | 114 | std::size_t &recvd_size,unsigned int &priority); |
| 115 | 115 | |
| 116 | 116 | /*!Receives a message from the message queue. The message is stored in buffer |
| 117 | 117 | "buffer", which has size "buffer_size". The received message has size |
| 118 | | "recvd_size" and priority "priority". If the message queue is full |
| 119 | | the sender is retries until time "abs_time" is reached. Returns true if |
| 120 | | the message has been successfully sent. Returns false if timeout is reached. |
| | 118 | "recvd_size" and priority "priority". If the message queue is empty |
| | 119 | the receiver retries until time "abs_time" is reached. Returns true if |
| | 120 | the message has been successfully received. Returns false if timeout is reached. |
| 121 | 121 | Throws interprocess_error on error.*/ |
| 122 | 122 | bool timed_receive (void *buffer, std::size_t buffer_size, |
| 123 | 123 | std::size_t &recvd_size,unsigned int &priority, |