What is C's analogy to LabVIEW's Event Structure?

Posted by SiegeX on Stack Overflow See other posts from Stack Overflow or by SiegeX
Published on 2010-03-11T02:32:01Z Indexed on 2010/03/11 17:29 UTC
Read the original article Hit count: 489

Filed under:
|
|

One programming construct I use quite a bit in LabVIEW is the Event Structure. This gives me the benefit of not having to needlessly waste CPU cycles via polling but only perform actions when an event I'm interested in is generated.

As an experienced LabVIEW programmer with a decent understanding of C, I'm curious how one would go about emulating LabVIEW's event structure in C; preferably under Linux. A small code sample (like the one in the link above) illustrating how this might be done would be much appreciated. Also, if there already exists 3rd party libraries (for Linux) to add this event framework to C, that would be nice to know as well. Thanks.

© Stack Overflow or respective owner

Related posts about labview

Related posts about c