summaryrefslogtreecommitdiffstats
path: root/vespamalloc
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-01-07 00:11:10 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-01-07 00:11:10 +0100
commitcc07d6dcdbec8427d65b5d3ff676915b3f8fc2de (patch)
treec391066986ea9f8663e6e9d508d00290c3b26c53 /vespamalloc
parent70eb84c84a1da2ed166119686972b5714c0b1975 (diff)
Remove unnecessary volatile.
Diffstat (limited to 'vespamalloc')
-rw-r--r--vespamalloc/src/vespamalloc/malloc/threadproxy.cpp6
-rw-r--r--vespamalloc/src/vespamalloc/util/index.h1
2 files changed, 2 insertions, 5 deletions
diff --git a/vespamalloc/src/vespamalloc/malloc/threadproxy.cpp b/vespamalloc/src/vespamalloc/malloc/threadproxy.cpp
index d5cb88ba0ea..7a071e87d41 100644
--- a/vespamalloc/src/vespamalloc/malloc/threadproxy.cpp
+++ b/vespamalloc/src/vespamalloc/malloc/threadproxy.cpp
@@ -1,9 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
#include "threadproxy.h"
#include <dlfcn.h>
-#include <stdio.h>
-#include <errno.h>
-#include <pthread.h>
namespace vespamalloc {
@@ -34,7 +32,7 @@ typedef int (*pthread_create_function) (pthread_t *thread,
int linuxthreads_pthread_getattr_np(pthread_t pid, pthread_attr_t *dst);
static void * _G_mallocThreadProxyReturnAddress = NULL;
-static volatile std::atomic<size_t> _G_threadCount(1); // You always have the main thread.
+static std::atomic<size_t> _G_threadCount(1); // You always have the main thread.
static void cleanupThread(void * arg)
{
diff --git a/vespamalloc/src/vespamalloc/util/index.h b/vespamalloc/src/vespamalloc/util/index.h
index 3bfa4fbe7e5..b2c20f7bf02 100644
--- a/vespamalloc/src/vespamalloc/util/index.h
+++ b/vespamalloc/src/vespamalloc/util/index.h
@@ -20,4 +20,3 @@ private:
};
}
-