Article View: comp.sys.amiga.tech
Article #10340Re: VANILLAKEYS and various other things
From: Chuck McManis
Date: Tue, 22 Nov 1988 23:45
Date: Tue, 22 Nov 1988 23:45
18 lines
1278 bytes
1278 bytes
In article <1769@scolex> brianm@sco.COM (Brian Moffet) writes:
>It is this wait that returns immediatly. I then do a GetMsg()
>to see what happened, and GetMsg() returns NULL. the
>only thing I can assume is the signal is not cleared.
Right-o. And you don't have to even assume it, it's documented that
Wait() clears signals and GetMsg() doesn't do anything to signals.
The CLOSEWINDOW message sets the signal, you read it before looking
at the signal, then when you go to check the signal with a Wait() it
returns immediately because the signal is set but the message has already
been processed hence the null return from GetMsg().
--Chuck McManis
uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
Technical Details
Message-ID:
<78867@sun.uucp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanisReferences:
<8811200120.AA29916@postgres.Berkeley.EDU> <1769@scolex>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga.tech Subject: Re: VANILLAKEYS and various other things Message-ID: <78867@sun.uucp> Date: 22 Nov 88 23:45:57 GMT References: <8811200120.AA29916@postgres.Berkeley.EDU> <1769@scolex> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 18