diff options
| author | Ingo Molnar <mingo@elte.hu> | 2002-09-13 19:35:26 -0700 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2002-09-13 19:35:26 -0700 |
| commit | a5d2bf7b3b206f9d0c453618d02a5a0ede982c1d (patch) | |
| tree | 60905fc04febc0f1e373e1a36c998f221baff8e4 /include/linux/ppdev.h | |
| parent | 8fd85682818d4affc487edb4eea8c6a46bbc6bd3 (diff) | |
[PATCH] hide-threads-2.5.34-C1
I fixed up the 'remove thread group inferiors from the tasklist' patch. I
think i managed to find a reasonably good construct to iterate over all
threads:
do_each_thread(g, p) {
...
} while_each_thread(g, p);
the only caveat with this is that the construct suggests a single-loop -
while it's two loops internally - and 'break' will not work. I added a
comment to sched.h that warns about this, but perhaps it would help more
to have naming that suggests two loops:
for_each_process_do_each_thread(g, p) {
...
} while_each_thread(g, p);
but this looks a bit too long. I dont know. We might as well use it all
unrolled and no helper macros - although with the above construct it's
pretty straightforward to iterate over all threads in the system.
Diffstat (limited to 'include/linux/ppdev.h')
0 files changed, 0 insertions, 0 deletions
