projects
/
cacao.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/threads/threads-common.c (threads_dump): Ignore NEW threads while dumping.
[cacao.git]
/
src
/
threads
/
threads-common.c
diff --git
a/src/threads/threads-common.c
b/src/threads/threads-common.c
index 2e8ff22f795750551e4dc801f45abea3441b0177..034db137f6db746007dcff3fe56a228a8e372522 100644
(file)
--- a/
src/threads/threads-common.c
+++ b/
src/threads/threads-common.c
@@
-843,6
+843,10
@@
void threads_dump(void)
/* iterate over all started threads */
for (t = threads_list_first(); t != NULL; t = threads_list_next(t)) {
+ /* ignore threads which are in state NEW */
+ if (t->state == THREAD_STATE_NEW)
+ continue;
+
/* print thread info */
printf("\n");