aboutsummaryrefslogtreecommitdiff
path: root/odb/details/thread.cxx
blob: 9e0bba4c0cd421c99c1fd2b8146ec29bfae7ca18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// file      : odb/details/thread.cxx
// copyright : Copyright (c) 2009-2017 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