TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Ruskai
from: Herbert Rosenau
date: 1998-11-21 15:06:08
subject: the PM message queue

Hi Mike,

 you wrote at 16.11.98  23:00 to Denis Tonn:
 
 MR> It just occurred to me to ask.  Would it be possible to patch PM
 MR> to use WinPostMsg instead of WinSendMsg?

No, in no way.

 MR>   They both return four bytes, and take the exact same parameters.

Yes. But the handling of posting and sending a message is quite different:

A message SENDed will return only if it (and all messages sent by handling
it) is handled and the receiver returns.

A message POSTed returns immediatly and the return value tells nothing
about the result of the handlig but only the result of the post proces:
posted or NOT.

So you can act on the result of an sended message but not on a result of
posted message. (The handling is *always* syncronous.)

A sended message stops the current (senders) thread until the receiver
returns. A posted message will only executed *after* the sender is quit
with the actual message (return of message procedure) if the receiver is on
the same thread. The handling is asyncrouse - it *my* *be* syncrously if
and only if the receiver is on another thread.)

So if you would have to have the answer of an message you must send it.

Tschau/Bye

Herbert


--- Sqed/32 1.14/development  155:
* Origin: Auch ein Luftballon hat Platzangst (2:2476/493)
SEEN-BY: 396/1 632/0 371 633/260 267 270 371 635/444 506 728 639/252 670/218
@PATH: 2476/493 480 2410/200 2432/200 2433/1200 225 270/101 396/1 633/260
@PATH: 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.