| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | WinPostMsg |
-=> Quoting Darin McBride to Eelco Dolstra <=-
PC> However, this may block the Object windows queue for quite
PC> sometime.
PC> Do I not have to worry about blocking an Object windows queue as
PC> I do the main thread's queue?
ED> No, not if you post the message to the object window.
ED> However, I think that if you *send* the message, it
ED> will block the sending thread (in this case the main
ED> thread). So you should always use WinPostMsg.
DM> UNLESS you want the return value... then you HAVE to send the message.
True, however, you could post a message to the object window queue, send the
message from the object window procedure to get the result, then post or
send the result back to the main queue or handle it in the object window
procedure.
Isn't multi-threading fun! :-)
Phil
Fido: 1:124/8014.1 | Internet: phil.crown{at}bluecafe.com
--- Blue Wave/Max v2.22b
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 214-250-4479 * (1:124/1208)SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 124/1208 1 396/1 270/101 712/515 711/808 809 934 |
|
| 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™.