c++ - Interrupt and Resume Code -


i have queue objects, wich executed sequentially. there no operating system, i'm using hardware , code:

while(true) {     if( next = queue.next() ) {         next->do_stuff()     } } 

now want suspend code executed @ next->do_stuff(), based on hardware interrupts (there no more details needed hardware interrupts). suspend should save state (current instruction) , enqueue next queue, next do_stuff of next starts @ last instruction, before suspending it. know, how safe state, have no idea, how return do_stuff. think, should done assembly.

some buzzwords search for, nice. :)


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -