Welcome, Guest. Please login or register.

Author Topic: Super newbie C questions  (Read 2586 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Super newbie C questions
« on: June 29, 2008, 10:35:07 PM »
Quote
But what can the Wait function return when you haven't given it an OR'ed list of signals you're waiting on, but just one single signal.

Obviously it will only return when this single signal is received, and return the signalmask set.

However, it is a bad idea to optimize such cases, because it will break horribly if you later add more signals. Keeping the style consistent regardless of the number of signals waited reduces the chance of unintended mistake.