summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 08:57:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 08:57:49 +0000
commit5f647647b2683875bdbed970d955a9e5123284bd (patch)
tree66dcf1d9f7a60cd19dd9ac410e27d5f6ead521d3 /daemon
parentReleasing debian version 1.42.1-1. (diff)
downloadnetdata-5f647647b2683875bdbed970d955a9e5123284bd.tar.xz
netdata-5f647647b2683875bdbed970d955a9e5123284bd.zip
Merging upstream version 1.42.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'daemon')
-rw-r--r--daemon/static_threads.h33
1 files changed, 0 insertions, 33 deletions
diff --git a/daemon/static_threads.h b/daemon/static_threads.h
index 9597da70..46195cf4 100644
--- a/daemon/static_threads.h
+++ b/daemon/static_threads.h
@@ -5,39 +5,6 @@
#include "common.h"
-struct netdata_static_thread {
- // the name of the thread as it should appear in the logs
- char *name;
-
- // the section of netdata.conf to check if this is enabled or not
- char *config_section;
-
- // the name of the config option to check if it is true or false
- char *config_name;
-
- // the current status of the thread
- volatile sig_atomic_t enabled;
-
- // internal use, to maintain a pointer to the created thread
- netdata_thread_t *thread;
-
- // an initialization function to run before spawning the thread
- void (*init_routine) (void);
-
- // the threaded worker
- void *(*start_routine) (void *);
-
- // the environment variable to create
- char *env_name;
-
- // global variable
- bool *global_variable;
-};
-
-#define NETDATA_MAIN_THREAD_RUNNING CONFIG_BOOLEAN_YES
-#define NETDATA_MAIN_THREAD_EXITING (CONFIG_BOOLEAN_YES + 1)
-#define NETDATA_MAIN_THREAD_EXITED CONFIG_BOOLEAN_NO
-
extern const struct netdata_static_thread static_threads_common[];
extern const struct netdata_static_thread static_threads_linux[];
extern const struct netdata_static_thread static_threads_freebsd[];