Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
c639483d
Unverified
Commit
c639483d
authored
Jun 21, 2018
by
Gabi Melman
Committed by
GitHub
Jun 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #735 from jwnimmer-tri/dist_sink_reset
add remove_all_sinks method to dist_sink
parents
032035e7
b3881b9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
dist_sink.h
include/spdlog/sinks/dist_sink.h
+6
-0
No files found.
include/spdlog/sinks/dist_sink.h
View file @
c639483d
...
@@ -62,6 +62,12 @@ public:
...
@@ -62,6 +62,12 @@ public:
std
::
lock_guard
<
Mutex
>
lock
(
base_sink
<
Mutex
>::
_mutex
);
std
::
lock_guard
<
Mutex
>
lock
(
base_sink
<
Mutex
>::
_mutex
);
_sinks
.
erase
(
std
::
remove
(
_sinks
.
begin
(),
_sinks
.
end
(),
sink
),
_sinks
.
end
());
_sinks
.
erase
(
std
::
remove
(
_sinks
.
begin
(),
_sinks
.
end
(),
sink
),
_sinks
.
end
());
}
}
void
remove_all_sinks
()
{
std
::
lock_guard
<
Mutex
>
lock
(
base_sink
<
Mutex
>::
_mutex
);
_sinks
.
clear
();
}
};
};
using
dist_sink_mt
=
dist_sink
<
std
::
mutex
>
;
using
dist_sink_mt
=
dist_sink
<
std
::
mutex
>
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment