projects
/
quagga-debian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New upstream version 1.2.4
[quagga-debian.git]
/
lib
/
thread.c
diff --git
a/lib/thread.c
b/lib/thread.c
index 55effaac9d6cd2d6dc4319091fa245a4b5a85e10..f7d1a5ff9aa40a661430283d5d82d780a9215dcc 100644
(file)
--- a/
lib/thread.c
+++ b/
lib/thread.c
@@
-1276,7
+1276,12
@@
struct thread *thread_current = NULL;
/* We check thread consumed time. If the system has getrusage, we'll
use that to get in-depth stats on the performance of the thread in addition
/* We check thread consumed time. If the system has getrusage, we'll
use that to get in-depth stats on the performance of the thread in addition
- to wall clock time stats from gettimeofday. */
+ to wall clock time stats from gettimeofday.
+
+ 'Dummy' threads (e.g. see funcname_thread_execute) must have
+ thread->master == NULL.
+ */
+
static void
thread_call (struct thread *thread)
{
static void
thread_call (struct thread *thread)
{
@@
-1336,8
+1341,10
@@
thread_call (struct thread *thread)
realtime/1000, cputime/1000);
}
#endif /* CONSUMED_TIME_CHECK */
realtime/1000, cputime/1000);
}
#endif /* CONSUMED_TIME_CHECK */
+
- thread_add_unuse (thread);
+ if (thread->master)
+ thread_add_unuse (thread);
}
/* Execute thread */
}
/* Execute thread */