Re: interrupt dependencies.

2010-02-09 Thread nidhi mittal hada
i tried a solution .. int A { spin_lock a x=0 func A() x=1; spin_unlock a } int B { done = false; while(done == false) { spin_lock a; if(x==1){ func B() spin_unlock a; done = true; }

Re: interrupt dependencies.

2010-02-08 Thread Andrea Gasparini
In data lunedì 08 febbraio 2010 17:50:29, Mulyadi Santosa ha scritto: > First idea that crosses my mind is: > > create an atomic (maybe 64 bit one?) counter. Increase it every time > funcA() is executed. then, create same type of counter, let;s name it > old_counter... LOL, Exactly what I tried.

Re: interrupt dependencies.

2010-02-08 Thread Michael Blizek
Hi! On 13:45 Mon 08 Feb , Andrea Gasparini wrote: > Hi, > Let's say I have two kind of interrupt: IntA e IntB > After the former, I should do something, let's say "funcA()". > and after the second I should do (guess what?) funcB(). > > My constraints are that funcB have to be called after th

interrupt dependencies.

2010-02-08 Thread Andrea Gasparini
Hi, Let's say I have two kind of interrupt: IntA e IntB After the former, I should do something, let's say "funcA()". and after the second I should do (guess what?) funcB(). My constraints are that funcB have to be called after the relative funcA, and *not* viceversa, and funcA have to be called