Programmer Guide/Macro Library/MSGQUEUE: Difference between revisions

From STX Wiki
Jump to navigationJump to search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
==MSGQUEUE==
==MSGQUEUE==


This macro stores message in a secondary message queue. It can be used in "sub-message-loops" (e.g. as used for playback, spu-processing or modal dialogs) to queue messages which can not be processed at the time.
This macro stores a message in a secondary message queue. It can be used in "sub-message-loops" (e.g. as used for playback, spu-processing or modal dialogs) to queue messages which can not be processed at the time.


While messages are queued in the secondary message queue, the call "<code>getmessage 0</code>" must be used for messages retrival, to avoid to processing of queued messages by <code>[[Programmer_Guide/Macro_Library/GETMESSAGE|GetMessage]]</code>.
While messages are queued in the secondary message queue, the call "<code>getmessage 0</code>" must be used for message retrieval, to avoid to processing of queued messages by <code>[[Programmer_Guide/Macro_Library/GETMESSAGE|GETMESSAGE]]</code>.


=====Usage:=====
=====Usage:=====
Line 31: Line 31:


void
void
==See also==
[[Programmer_Guide/Macro_Library/GETMESSAGE|GETMESSAGE]]
[[Programmer_Guide/Macro_Library/SETMSGHANDLER|SETMSGHANDLER]]

Latest revision as of 08:08, 6 August 2019

MSGQUEUE

This macro stores a message in a secondary message queue. It can be used in "sub-message-loops" (e.g. as used for playback, spu-processing or modal dialogs) to queue messages which can not be processed at the time.

While messages are queued in the secondary message queue, the call "getmessage 0" must be used for message retrieval, to avoid to processing of queued messages by GETMESSAGE.

Usage:

MSGQUEUE type name id par

Parameters:
type
The type of sender.
name
The name of the sender.
id
The message id.
par
The message parameters.
Result:

void

See also

GETMESSAGE

SETMSGHANDLER

Navigation menu

Personal tools