Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
you Have 2 Ways For This in c++:
with using thread you can have parallel processing in one main program.
you can put your check routine in thread and when it's occured do every thing that you want
notice that when the thread routine running the main program is running too.
you can check state in periodical time...
when it occured jump to every where yu want.