aboutsummaryrefslogtreecommitdiff
path: root/common/threads/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-18 17:57:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-18 17:57:38 +0200
commite0750fbbc76732b3e8aa83ce786c28fcbf24374d (patch)
tree745158c0ca6e68362dc0566437187c7055becc74 /common/threads/test.hxx
parentfad897c8f3239f6594bd379e42166dc9a528e210 (diff)
Add multi-threading test
Diffstat (limited to 'common/threads/test.hxx')
-rw-r--r--common/threads/test.hxx31
1 files changed, 31 insertions, 0 deletions
diff --git a/common/threads/test.hxx b/common/threads/test.hxx
new file mode 100644
index 0000000..d02fdfd
--- /dev/null
+++ b/common/threads/test.hxx
@@ -0,0 +1,31 @@
+// file : common/template/test.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef TEST_HXX
+#define TEST_HXX
+
+#include <string>
+
+#include <odb/core.hxx>
+
+#pragma odb object
+struct object
+{
+ object (unsigned long id, const std::string& str)
+ : id_ (id), str_ (str)
+ {
+ }
+
+ object ()
+ {
+ }
+
+ #pragma odb id
+ unsigned long id_;
+
+ std::string str_;
+};
+
+#endif // TEST_HXX