diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-04-20 11:41:18 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-04-20 11:41:18 +0300 |
commit | ce2bded4521255e3a0f7d2926d4198e75743af1d (patch) | |
tree | b97924438f3309a172c0dd09aa1d1ba9e51819c6 /src/directive.c | |
parent | 84838fa69592cf37f97aaa918ad4e69b8bd4d62a (diff) | |
download | wydawca-ce2bded4521255e3a0f7d2926d4198e75743af1d.tar.gz wydawca-ce2bded4521255e3a0f7d2926d4198e75743af1d.tar.bz2 |
Rewrite the timer support.
Timers are kept in a thread-specific array variable. Spool timers are
referenced in expansion strings by their fully qualified names, e.g.
${timer:spool:release:system}.
* NEWS: Update.
* doc/wydawca.texi: Document new syntax for the spool timer variables.
* src/directive.c
* src/wydawca.h (struct spool): New member: timer_id.
* tests/upload-dry.at: Filter out certain messages, that can appear
* src/process.c (spool_count): New global.
(register_spool): Build spool list in the same order as listed in the
configuration file.
(spool_timer_id): New function.
* src/timer.c: Rewrite using array of struct timer_slot, instead of the
hash table.
* src/triplet.c (try_timer_var): Rewrite.
* src/wydawca.c (stderr_printer): Protect stderr by a mutex.
in unpredictable order.
Diffstat (limited to 'src/directive.c')
-rw-r--r-- | src/directive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/directive.c b/src/directive.c index b1b5a79..5067f00 100644 --- a/src/directive.c +++ b/src/directive.c @@ -597,7 +597,7 @@ process_directives(struct wy_triplet *trp) struct spool *spool = trp->spool; increase_stat_counter(WY_STAT_COMPLETE_TRIPLETS); - timer_start("triplet"); + timer_start(WY_TIMER_TRIPLET); report_init(); for (n = directive_first(trp, &key, &val); n; n = directive_next(trp, n, &key, &val)) { @@ -670,7 +670,7 @@ process_directives(struct wy_triplet *trp) increase_stat_counter(WY_STAT_TRIPLET_SUCCESS); report_finish(); - timer_stop("triplet"); + timer_stop(WY_TIMER_TRIPLET); notify(spool->notification, trp, wy_ev_success); return 0; } |