summaryrefslogtreecommitdiff
path: root/plugin.h
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-11-23 23:36:14 +0100
committertomsmeding <tom.smeding@gmail.com>2019-11-23 23:36:43 +0100
commit4381cca95136b0a8222378a41ac0ebb1bc62ea80 (patch)
treecb68b2c041c19c0f9d3deaeda64a6fafd71f5f18 /plugin.h
parente2492535cf8ecff85595712e69774d94dd98a751 (diff)
Use threads, not processes, to handle requests
Diffstat (limited to 'plugin.h')
-rw-r--r--plugin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin.h b/plugin.h
index d3e8b36..756c45a 100644
--- a/plugin.h
+++ b/plugin.h
@@ -15,4 +15,5 @@ typedef void (*register_callback_t)(const char *name,Handler handler);
// Override this in the plugin; it will be called from the main application.
// It should call the callback with the plugin's handler.
+// Note that the plugin's handler will be called from multiple threads, so ensure that it is thread-safe.
void plugin_register_yourself(register_callback_t callback);