Skip to content
Snippets Groups Projects
Commit 0ee74897 authored by Jakob Blomer's avatar Jakob Blomer
Browse files

add util/algorithm.cc to libcvmfs_util

parent 2bd51535
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,6 @@ set (CVMFS_PUBLISH_SOURCES
ssl.cc
statistics.cc
upload_spooler_definition.cc
util/algorithm.cc
util/exception.cc
util/logging.cc
util/namespace.cc
......@@ -354,7 +353,6 @@ set (LIBCVMFS_SERVER_SOURCES
upload_local.cc
upload_s3.cc
upload_spooler_definition.cc
util/algorithm.cc
util/concurrency.cc
util/exception.cc
util/file_backed_buffer.cc
......@@ -470,7 +468,6 @@ set (CVMFS_SWISSKNIFE_SOURCES
upload_s3.cc
upload_spooler_definition.cc
url.cc
util/algorithm.cc
util/concurrency.cc
util/exception.cc
util/file_backed_buffer.cc
......@@ -638,7 +635,6 @@ if(BUILD_RECEIVER)
upload_local.cc
upload_s3.cc
upload_spooler_definition.cc
util/algorithm.cc
util/concurrency.cc
util/exception.cc
util/file_backed_buffer.cc
......
......@@ -2,6 +2,7 @@ if (BUILD_CVMFS OR BUILD_SERVER OR BUILD_RECEIVER OR
BUILD_SHRINKWRAP OR BUILD_PRELOADER OR BUILD_UNITTESTS)
set (LIBCVMFS_UTIL_SOURCES
util/algorithm.cc
util/string.cc
)
......
......@@ -12,6 +12,7 @@
#include <vector>
#include "util/atomic.h"
#include "util/export.h"
#include "util/murmur.hxx"
#include "util/platform.h"
#include "util/prng.h"
......@@ -22,7 +23,7 @@ namespace CVMFS_NAMESPACE_GUARD {
#endif
double DiffTimeSeconds(struct timeval start, struct timeval end);
CVMFS_EXPORT double DiffTimeSeconds(struct timeval start, struct timeval end);
// Bitfield manipulation for different integer types T
template <typename T>
......@@ -107,7 +108,7 @@ struct hash_murmur {
* watch.Stop();
* printf("%f", watch.GetTime());
*/
class StopWatch : SingleCopy {
class CVMFS_EXPORT StopWatch : SingleCopy {
public:
StopWatch() : running_(false) {}
......@@ -136,7 +137,7 @@ class StopWatch : SingleCopy {
* hist.PrintLog2Histogram();
*/
class Log2Histogram {
class CVMFS_EXPORT Log2Histogram {
friend class UTLog2Histogram;
public:
......@@ -194,7 +195,7 @@ class UTLog2Histogram {
};
class HighPrecisionTimer : SingleCopy {
class CVMFS_EXPORT HighPrecisionTimer : SingleCopy {
public:
static bool g_is_enabled; // false by default
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment