Page 1 of 1

Waking up a thread from an interrupt handler

Posted: Tue Sep 27, 2011 1:44 pm
by OlivierD
Hello,

I am trying to use the method proposed in this tutorial but I can't make it work. The reason is there is apparently no member of the thread structure called p_rdymsg and no such state as PRSUSPENDED.

I replaced both by p_msg and THD_STATE_SUSPENDED respectively, but I wanted to be sure I wasn't mistaking with this. Was there a change of version or anything since this tutorial is online?

Re: Waking up a thread from an interrupt handler

Posted: Tue Sep 27, 2011 1:52 pm
by Giovanni
Hi, the tutorial is quite old and the code moves forward, anyway, PRSUSPENDED has been renamed THD_STATE_SUSPENDED, p_rdymsg is now within an union so refer to it as "tp->p_u.rdymsg". I will update the article too, thanks for reporting.

Giovanni