Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
6ff52332
Commit
6ff52332
authored
Sep 03, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused member from backtracer
parent
5e75b104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
include/spdlog/details/backtracer.h
include/spdlog/details/backtracer.h
+4
-14
No files found.
include/spdlog/details/backtracer.h
View file @
6ff52332
...
@@ -16,26 +16,16 @@ namespace spdlog {
...
@@ -16,26 +16,16 @@ namespace spdlog {
namespace
details
{
namespace
details
{
class
backtracer
class
backtracer
{
{
std
::
mutex
mutex_
;
std
::
mutex
mutex_
;
size_t
n_messages_
;
circular_q
<
log_msg_buffer
>
messages_
;
circular_q
<
log_msg_buffer
>
messages_
;
public:
public:
explicit
backtracer
(
size_t
n_messages
)
explicit
backtracer
(
size_t
n_messages
)
:
messages_
{
n_messages
}
:
n_messages_
{
n_messages
}
,
messages_
{
n_messages
}
{}
{}
backtracer
(
const
backtracer
&
other
)
backtracer
(
const
backtracer
&
other
)
:
messages_
{
other
.
messages_
}
:
n_messages_
{
other
.
n_messages_
}
,
messages_
{
other
.
messages_
}
{}
{}
size_t
n_messages
()
const
{
return
n_messages_
;
}
void
add
(
const
log_msg
&
msg
)
void
add
(
const
log_msg
&
msg
)
{
{
std
::
lock_guard
<
std
::
mutex
>
lock
{
mutex_
};
std
::
lock_guard
<
std
::
mutex
>
lock
{
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