aboutsummaryrefslogtreecommitdiff
path: root/odb/details/win32/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/details/win32/init.cxx')
-rw-r--r--odb/details/win32/init.cxx43
1 files changed, 43 insertions, 0 deletions
diff --git a/odb/details/win32/init.cxx b/odb/details/win32/init.cxx
new file mode 100644
index 0000000..c07b9d8
--- /dev/null
+++ b/odb/details/win32/init.cxx
@@ -0,0 +1,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 ();
+ }
+ }
+}