Gilles Chanteperdrix wrote:
> Jan Kiszka wrote:
>> + /* We are awake, no one must steal our lock anymore. */
>> + thread->wwake = NULL;
> This is wrong, whether or not no one must steal our lock anymore will be
> decided at the "redo" label, when we "test and set", the synch owner.
Maybe I should have added "(in case we actually got it)". If not, that
assignment is a nop. If we redo the whole thing, we would have cleared
XNWAKEN in xnpod_suspend_thread before suspension, so the effect should
be the same.
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
Xenomai-core mailing list