From 26e36b3a9d7b49d46ecfa69b447482251acba8ac Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 24 Jan 2024 16:53:38 +0300 Subject: Turn libodb repository into package for muti-package repository --- libodb/odb/details/thread.cxx | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 libodb/odb/details/thread.cxx (limited to 'libodb/odb/details/thread.cxx') diff --git a/libodb/odb/details/thread.cxx b/libodb/odb/details/thread.cxx new file mode 100644 index 0000000..b1fbe42 --- /dev/null +++ b/libodb/odb/details/thread.cxx @@ -0,0 +1,22 @@ +// file : odb/details/thread.cxx +// license : GNU GPL v2; see accompanying LICENSE file + +#include + +// We might be compiled with ODB_THREADS_NONE. +// +#ifdef ODB_THREADS_CXX11 + +namespace odb +{ + namespace details + { + void thread:: + thunk (void* (*f) (void*), void* a, std::promise p) + { + p.set_value (f (a)); + } + } +} + +#endif -- cgit v1.1