Re: flush_scheduled_tasks() question

From: Manfred Spraul (manfred@colorfullife.com)
Date: Mon Jan 29 2001 - 05:15:47 EST


David Woodhouse wrote:
>
> -static struct tq_struct dummy_task;
> +static struct tq_struct dummy_task /* = all zero */;
>
That comment is superflous - that's just C.
The non-obvious part is

+static struct tq_struct dummy_task; /* remains zero, run_task_queue()
supports tqs.routine==NULL*/

BUT: The implementation isn't thread safe: what if multiple threads call
flush_scheduled_tasks()?

--
	Manfred
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 31 2001 - 21:00:32 EST