projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5abf3d0
)
The thread doing housekeeping now changes its name when doing
author
Dave West
<davew@uncensored.citadel.org>
Wed, 5 Dec 2007 20:47:53 +0000
(20:47 +0000)
committer
Dave West
<davew@uncensored.citadel.org>
Wed, 5 Dec 2007 20:47:53 +0000
(20:47 +0000)
housekeeping.
citadel/housekeeping.c
patch
|
blob
|
history
diff --git
a/citadel/housekeeping.c
b/citadel/housekeeping.c
index b0d4a1d265c93b1b977f3a1678224dc153864cd1..901dd8ec8bfda23b29aab9f4b83e990ed51df21a 100644
(file)
--- a/
citadel/housekeeping.c
+++ b/
citadel/housekeeping.c
@@
-139,6
+139,7
@@
void do_housekeeping(void) {
int do_housekeeping_now = 0;
int do_perminute_housekeeping_now = 0;
time_t now;
int do_housekeeping_now = 0;
int do_perminute_housekeeping_now = 0;
time_t now;
+ const char *old_name;
/*
* We do it this way instead of wrapping the whole loop in an
/*
* We do it this way instead of wrapping the whole loop in an
@@
-167,13
+168,16
@@
void do_housekeeping(void) {
*/
/* First, do the "as often as needed" stuff... */
*/
/* First, do the "as often as needed" stuff... */
+ old_name = CtdlThreadName("House Keeping - Journal");
JournalRunQueue();
JournalRunQueue();
+ CtdlThreadName("House Keeping - EVT_HOUSE");
PerformSessionHooks(EVT_HOUSE); /* perform as needed housekeeping */
/* Then, do the "once per minute" stuff... */
if (do_perminute_housekeeping_now) {
cdb_check_handles(); /* suggested by Justin Case */
PerformSessionHooks(EVT_HOUSE); /* perform as needed housekeeping */
/* Then, do the "once per minute" stuff... */
if (do_perminute_housekeeping_now) {
cdb_check_handles(); /* suggested by Justin Case */
+ CtdlThreadName("House Keeping - EVT_TIMER");
PerformSessionHooks(EVT_TIMER); /* Run any timer hooks */
}
PerformSessionHooks(EVT_TIMER); /* Run any timer hooks */
}
@@
-181,4
+185,5
@@
void do_housekeeping(void) {
* All done.
*/
housekeeping_in_progress = 0;
* All done.
*/
housekeeping_in_progress = 0;
+ CtdlThreadName(old_name);
}
}