Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22c480376
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22c480376
Commits
0ee74897
Commit
0ee74897
authored
2 years ago
by
Jakob Blomer
Browse files
Options
Downloads
Patches
Plain Diff
add util/algorithm.cc to libcvmfs_util
parent
2bd51535
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cvmfs/CMakeLists.txt
+0
-4
0 additions, 4 deletions
cvmfs/CMakeLists.txt
cvmfs/util/CMakeLists.txt
+1
-0
1 addition, 0 deletions
cvmfs/util/CMakeLists.txt
cvmfs/util/algorithm.h
+5
-4
5 additions, 4 deletions
cvmfs/util/algorithm.h
with
6 additions
and
8 deletions
cvmfs/CMakeLists.txt
+
0
−
4
View file @
0ee74897
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
cvmfs/util/CMakeLists.txt
+
1
−
0
View file @
0ee74897
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
cvmfs/util/algorithm.h
+
5
−
4
View file @
0ee74897
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment