diff options
Diffstat (limited to 'odb/details/thread.cxx')
-rw-r--r-- | odb/details/thread.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/odb/details/thread.cxx b/odb/details/thread.cxx new file mode 100644 index 0000000..d00f498 --- /dev/null +++ b/odb/details/thread.cxx @@ -0,0 +1,23 @@ +// file : odb/details/thread.cxx +// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#include <odb/details/thread.hxx> + +// 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<void*> p) + { + p.set_value (f (a)); + } + } +} + +#endif |