Working on UDP, removed debug from some code, fixed ARP setting hwtype to 0x100 ...
[tpg/acess2.git] / Usermode / Applications / axwin2_src / WM / messages.c
index bf2d2b8..0147e5f 100644 (file)
@@ -22,13 +22,13 @@ void        Messages_Handle(tAxWin_Message *Msg, tMessages_Handle_Callback *Respond, in
 void Messages_PollIPC()
 {
         int    len;
-        int    tid = 0;
+       pid_t   tid = 0;
        char    staticBuf[STATICBUF_SIZE];
        tAxWin_Message  *msg;
        
        // Wait for a message
-       while( (len = SysGetMessage(&tid, NULL)) )
-               yield();
+       while( (len = SysGetMessage(&tid, NULL)) == 0 )
+               sleep();
        
        // Allocate the space for it
        if( len <= STATICBUF_SIZE )

UCC git Repository :: git.ucc.asn.au