From 0a2b257868214502e392f01ff2c3f92993bd5e4e Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Mon, 28 Dec 2020 22:25:45 +0100 Subject: Declare osmo_ctx_init() in talloc.h This function is called automatically on the main thread, but needs to ba called explicitly in order to run the select loop on another thread. Make it available for applications through talloc.h Change-Id: Ie710ca9ad01d3fadb9f4ff344a55d6c01004727b --- include/osmocom/core/talloc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/osmocom/core/talloc.h b/include/osmocom/core/talloc.h index c68a56cf..f15cd2a2 100644 --- a/include/osmocom/core/talloc.h +++ b/include/osmocom/core/talloc.h @@ -25,3 +25,5 @@ extern __thread struct osmo_talloc_contexts *osmo_ctx; * to the various _c functions like msgb_alloc_c() */ #define OTC_GLOBAL (osmo_ctx->global) #define OTC_SELECT (osmo_ctx->select) + +int osmo_ctx_init(const char *id); -- cgit v1.2.3