Thread: setNewDataSem
View Single Post
  #1   Spotlight this post!  
Unread 27-01-2009, 02:35
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,168
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
setNewDataSem

I assume the function setNewDataSem allows me to pass a handle to a semaphore that will get processed each time a data packet arrives.

I'd like to use this mechanism instead of polling to see if a new message has arrived. Is this semaphore given (semGive) or flushed (semFlush) each time?

It does not seem to work no matter how I use it.

Thanks
Reply With Quote