Programmer Guide/Macro Library/MSGQUEUE: Difference between revisions
From STX Wiki
Jump to navigationJump to search
Line 4: | Line 4: | ||
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 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 message retrieval, to avoid to processing of queued messages by <code>[[Programmer_Guide/Macro_Library/GETMESSAGE| | 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]] |
Revision as of 08:06, 6 August 2019
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.
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