aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/threads/driver.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/common/threads/driver.cxx b/common/threads/driver.cxx
index dd2d9f6..72f861c 100644
--- a/common/threads/driver.cxx
+++ b/common/threads/driver.cxx
@@ -25,10 +25,6 @@
using namespace std;
using namespace odb;
-using details::shared;
-using details::shared_ptr;
-using details::thread;
-
const size_t thread_count = 32;
const size_t iteration_count = 100;
@@ -121,17 +117,17 @@ main (int argc, char* argv[])
{
auto_ptr<database> db (create_database (argc, argv));
- vector<shared_ptr<thread> > threads;
- vector<shared_ptr<task> > tasks;
+ vector<details::shared_ptr<details::thread> > threads;
+ vector<details::shared_ptr<task> > tasks;
for (size_t i (0); i < thread_count; ++i)
{
- shared_ptr<task> t (new (shared) task (*db, i));
+ details::shared_ptr<task> t (new (details::shared) task (*db, i));
tasks.push_back (t);
threads.push_back (
- shared_ptr<thread> (
- new (shared) thread (&task::execute, t.get ())));
+ details::shared_ptr<details::thread> (
+ new (details::shared) details::thread (&task::execute, t.get ())));
}
for (size_t i (0); i < thread_count; ++i)