feat: add threadpool and started pooling executors

This commit is contained in:
2024-08-03 13:08:46 +02:00
parent e35dbdb1f3
commit dcc25f88a7
15 changed files with 544 additions and 85 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
#ifndef SCI_NOTIFY_H
#define SCI_NOTIFY_H
#include "pipeline.h"
#include <sys/inotify.h>
typedef void(*notify_callback)(struct inotify_event* const);
typedef void(*notify_callback)(pipeline_event* const);
// Start listening for changes to the provided file.
// Note that the `struct inotify_event*` provided is a managed pointer.
void listen_for_changes(const char* filename, notify_callback callback);
void listen_for_changes(const pipeline_conf* config, notify_callback callback);
#endif