Leggi in inglese

Condividi tramite


Synchronous Reading

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

When an application synchronously reads messages in a queue, all calls are blocked until the next message is available or a specific amount of time expires. The amount of time the application waits can be 0, a specific amount of time (in milliseconds), or the maximum time allowed by your Message Queuing enterprise. When the time expires for a synchronous read, Message Queuing returns a NULL message (for applications using COM components) or an MQ_ERROR_IO_TIMEOUT error (for applications using functions).

Nota

Cursors can be used to navigate through a queue when reading messages synchronously. Cursors behave the same way in synchronous and asynchronous operations.