View Single Post
Old 02 August 2021, 04:28   #23
Sim085
Registered User
 
Join Date: Apr 2009
Location: N/A
Posts: 962
Thank you for the sample code. This helped me a lot. I have re-organized my code to follow the same structure. The code is more readable like this and while going through the changes I also spotted an issue with how I was managing the second signal mask.

Will read about MuForce.

Quote:
Originally Posted by Thomas Richter View Post

Code:
signals = Wait(...);

if (signal & (1UL << windowsignal)) {
 while(msg = GT_GetIMsg(...)) {
   ... handle messsage ...
   GT_ReplyIMsg(msg);
 }
} else if (signal & (othersignalmask)) {
 ...
}
Sim085 is offline  
 
Page generated in 0.06681 seconds with 11 queries