summaryrefslogtreecommitdiffstats
path: root/daemon/main.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-26 18:05:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-26 18:05:10 +0000
commit34a0b66bc2d48223748ed1cf5bc1b305c396bd74 (patch)
treefbd36be86cc6bc4288fe627f2b5beada569848bb /daemon/main.h
parentAdding upstream version 1.32.1. (diff)
downloadnetdata-34a0b66bc2d48223748ed1cf5bc1b305c396bd74.tar.xz
netdata-34a0b66bc2d48223748ed1cf5bc1b305c396bd74.zip
Adding upstream version 1.33.0.upstream/1.33.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'daemon/main.h')
-rw-r--r--daemon/main.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/daemon/main.h b/daemon/main.h
index 4000ab70b..63d6c5a09 100644
--- a/daemon/main.h
+++ b/daemon/main.h
@@ -7,10 +7,6 @@
extern struct config netdata_config;
-#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
-
/**
* This struct contains information about command line options.
*/
@@ -26,20 +22,6 @@ struct option_def {
const char *default_value;
};
-struct netdata_static_thread {
- char *name; // the name of the thread as it should appear in the logs
-
- char *config_section; // the section of netdata.conf to check if this is enabled or not
- char *config_name; // the name of the config option to check if it is true or false
-
- volatile sig_atomic_t enabled; // the current status of the thread
-
- netdata_thread_t *thread; // internal use, to maintain a pointer to the created thread
-
- void (*init_routine) (void); // an initialization function to run before spawning the thread
- void *(*start_routine) (void *); // the threaded worker
-};
-
extern void cancel_main_threads(void);
extern int killpid(pid_t pid);
extern void netdata_cleanup_and_exit(int ret) NORETURN;