Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-02-26 18:15:15 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:37:44 +0300
commit681feb94c08f10f6ec2f70cd9056344e3c285f10 (patch)
tree0da635e58e85316053de7defd6e0d33b84d905b9 /std
parent0e5ad066dbf8b49145f381767104fbd199aa07f4 (diff)
[search-index] Improved performance of current search index building process.
Diffstat (limited to 'std')
-rw-r--r--std/memory.hpp15
-rw-r--r--std/mutex.hpp2
-rw-r--r--std/thread.hpp14
3 files changed, 31 insertions, 0 deletions
diff --git a/std/memory.hpp b/std/memory.hpp
new file mode 100644
index 0000000000..c0edfa8943
--- /dev/null
+++ b/std/memory.hpp
@@ -0,0 +1,15 @@
+#pragma once
+#include "common_defines.hpp"
+
+#ifdef new
+#undef new
+#endif
+
+#include <memory>
+
+using std::make_shared;
+using std::shared_ptr;
+
+#ifdef DEBUG_NEW
+#define new DEBUG_NEW
+#endif
diff --git a/std/mutex.hpp b/std/mutex.hpp
index 161b168998..0f024c0647 100644
--- a/std/mutex.hpp
+++ b/std/mutex.hpp
@@ -7,7 +7,9 @@
#include <mutex>
+using std::lock_guard;
using std::mutex;
+using std::unique_lock;
#ifdef DEBUG_NEW
#define new DEBUG_NEW
diff --git a/std/thread.hpp b/std/thread.hpp
new file mode 100644
index 0000000000..0e9cf61426
--- /dev/null
+++ b/std/thread.hpp
@@ -0,0 +1,14 @@
+#pragma once
+#include "common_defines.hpp"
+
+#ifdef new
+#undef new
+#endif
+
+#include <thread>
+
+using std::thread;
+
+#ifdef DEBUG_NEW
+#define new DEBUG_NEW
+#endif