git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Working on UDP, removed debug from some code, fixed ARP setting hwtype to 0x100 ...
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin2_src
/
WM
/
messages.c
diff --git
a/Usermode/Applications/axwin2_src/WM/messages.c
b/Usermode/Applications/axwin2_src/WM/messages.c
index
bf2d2b8
..
0147e5f
100644
(file)
--- a/
Usermode/Applications/axwin2_src/WM/messages.c
+++ b/
Usermode/Applications/axwin2_src/WM/messages.c
@@
-22,13
+22,13
@@
void Messages_Handle(tAxWin_Message *Msg, tMessages_Handle_Callback *Respond, in
void Messages_PollIPC()
{
int len;
void Messages_PollIPC()
{
int len;
-
int
tid = 0;
+
pid_t
tid = 0;
char staticBuf[STATICBUF_SIZE];
tAxWin_Message *msg;
// Wait for a message
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 )
// Allocate the space for it
if( len <= STATICBUF_SIZE )
UCC
git Repository :: git.ucc.asn.au