1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-06-19 06:57:54 +02:00

status: report number of active worker threads in status output

This is especially useful when dynamic load management allocates more
worker threads than active tasks, so the extra threads are effectively
invisible.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2018-12-17 04:02:43 -05:00
Ursprung 7548d865a0
Commit 978c577412
3 geänderte Dateien mit 12 neuen und 1 gelöschten Zeilen
+3
Datei anzeigen
@@ -88,6 +88,9 @@ namespace crucible {
/// Gets the current number of queued Tasks
static size_t get_queue_count();
/// Gets the current number of active workers
static size_t get_thread_count();
/// Drop the current queue and discard new Tasks without
/// running them. Currently executing tasks are not
/// affected (use set_thread_count(0) to wait for those