On Sun, 2002-06-16 at 20:49, Ingo Molnar wrote:
smlinkage long sys_sched_yield(void)
> {
> - runqueue_t *rq;
> - prio_array_t *array;
> -
> - rq = rq_lock(rq);
> + runqueue_t *rq = rq_lock(rq);
> + prio_array_t *array = current->array;
Question. I have always wondered what the C rules are here... is
rq_lock guaranteed to be evaluated before current->array? I.e., is the
above synonymous with:
runqueue_t *rq;
prio_array_t *array;
rq = rq_lock(rq);
array = current->array;
...guaranteed?
Robert Love
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jun 23 2002 - 22:00:12 EST