[Tarantool-patches] [PATCH 29/43] build: export src/lib/core/fiber_cond.c symbols
Vladislav Shpilevoy
v.shpilevoy at tarantool.org
Sun Apr 12 03:13:10 MSK 2020
Exports functions used by the public C API.
Part of #2971
---
extra/exports | 6 ------
src/exports.c | 2 ++
src/lib/core/fiber_cond.c | 14 ++++++++++++++
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/extra/exports b/extra/exports
index 71dc6c3b7..8542c85b0 100644
--- a/extra/exports
+++ b/extra/exports
@@ -2,12 +2,6 @@
# Module API
-fiber_cond_new
-fiber_cond_delete
-fiber_cond_signal
-fiber_cond_broadcast
-fiber_cond_wait_timeout
-fiber_cond_wait
coio_wait
coio_close
coio_call
diff --git a/src/exports.c b/src/exports.c
index 388f21341..eda05b094 100644
--- a/src/exports.c
+++ b/src/exports.c
@@ -56,6 +56,7 @@ EXPORT(crc32_export_syms);
EXPORT(crypto_export_syms);
EXPORT(csv_export_syms);
EXPORT(exception_export_syms);
+EXPORT(fiber_cond_export_syms);
EXPORT(fiber_export_syms);
EXPORT(main_export_syms);
EXPORT(PMurHash32_export_syms);
@@ -82,6 +83,7 @@ export_syms(void)
crypto_export_syms,
csv_export_syms,
exception_export_syms,
+ fiber_cond_export_syms,
fiber_export_syms,
main_export_syms,
PMurHash32_export_syms,
diff --git a/src/lib/core/fiber_cond.c b/src/lib/core/fiber_cond.c
index 4998d6494..95c57286d 100644
--- a/src/lib/core/fiber_cond.c
+++ b/src/lib/core/fiber_cond.c
@@ -123,3 +123,17 @@ fiber_cond_wait_deadline(struct fiber_cond *c, double deadline)
double timeout = deadline - ev_monotonic_now(loop());
return fiber_cond_wait_timeout(c, timeout);
}
+
+void **
+fiber_cond_export_syms(void)
+{
+ static void *syms[] = {
+ (void *)fiber_cond_broadcast,
+ (void *)fiber_cond_delete,
+ (void *)fiber_cond_new,
+ (void *)fiber_cond_signal,
+ (void *)fiber_cond_wait,
+ (void *)fiber_cond_wait_timeout,
+ };
+ return syms;
+}
--
2.21.1 (Apple Git-122.3)
More information about the Tarantool-patches
mailing list