27 lines
881 B
Diff
27 lines
881 B
Diff
Based on: https://codeberg.org/bizdelnick/gross/commit/5a27b077d1b34b64687d1e3b717175280337aa22#diff-09c2d15e9648a6e088b053b7d71a3b532ce5b61b
|
|
---
|
|
diff -ruN a/include/thread_pool.h b/include/thread_pool.h
|
|
--- a/include/thread_pool.h 2025-07-30 17:19:45.060000000 +0000
|
|
+++ b/include/thread_pool.h 2025-07-30 17:26:12.140000000 +0000
|
|
@@ -22,6 +20,10 @@
|
|
|
|
#include <signal.h>
|
|
|
|
+#ifdef HAVE_STDBOOL_H
|
|
+# include <stdbool.h>
|
|
+#endif
|
|
+
|
|
typedef int mseconds_t;
|
|
|
|
typedef struct thread_pool_s
|
|
@@ -109,8 +110,7 @@
|
|
int submit_job(thread_pool_t *pool, edict_t *edict);
|
|
thread_pool_t *create_thread_pool(const char *name, int (*routine) (thread_pool_t *, thread_ctx_t *,
|
|
edict_t *), pool_limits_t *limits, void *arg);
|
|
-edict_t *edict_get();
|
|
-edict_t *edict_get();
|
|
+edict_t *edict_get(bool forget);
|
|
void send_result(edict_t *edict, void *result);
|
|
void edict_unlink(edict_t *edict);
|
|
|