aboutsummaryrefslogtreecommitdiff
path: root/odb/details/win32/init.cxx
blob: c07b9d847c6d40c660b500efe9688f7fb8fd7f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// file      : odb/details/win32/init.cxx
// author    : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#include <odb/details/win32/init.hxx>
#include <odb/details/win32/once-init.hxx>
#include <odb/details/win32/tls-init.hxx>

namespace odb
{
  namespace details
  {
    void
    process_start ()
    {
      // The order is important.
      //
      once_process_start ();
      tls_process_start ();
    }

    void
    process_end (bool safe)
    {
      // The order is important.
      //
      tls_process_end (safe);
      once_process_end (safe);
    }

    void
    thread_start ()
    {
    }

    void
    thread_end ()
    {
      tls_thread_end ();
    }
  }
}