Code

plugin: Added plugin_thread_create().
[collectd.git] / src / plugin.h
index a2f7f098113f84a1453c0a37077e2e0bc224c37b..5036a63b56b1b783a7bc7a6cbc728a1cd0544c48 100644 (file)
@@ -378,4 +378,11 @@ void plugin_init_ctx (void);
 plugin_ctx_t plugin_get_ctx (void);
 plugin_ctx_t plugin_set_ctx (plugin_ctx_t ctx);
 
+/*
+ * Context-aware thread management.
+ */
+
+int plugin_thread_create (pthread_t *thread, const pthread_attr_t *attr,
+               void *(*start_routine) (void *), void *arg);
+
 #endif /* PLUGIN_H */