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
ef111ddb
Commit
ef111ddb
authored
Jul 10, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue #736
parent
81f29a9a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
3 deletions
+29
-3
include/spdlog/details/pattern_formatter.h
include/spdlog/details/pattern_formatter.h
+2
-2
include/spdlog/details/thread_pool.h
include/spdlog/details/thread_pool.h
+27
-1
No files found.
include/spdlog/details/pattern_formatter.h
View file @
ef111ddb
...
...
@@ -549,8 +549,8 @@ public:
compile_pattern_
(
pattern
);
}
pattern_formatter
(
const
pattern_formatter
&
)
=
de
fault
;
pattern_formatter
&
operator
=
(
const
pattern_formatter
&
)
=
de
fault
;
pattern_formatter
(
const
pattern_formatter
&
)
=
de
lete
;
pattern_formatter
&
operator
=
(
const
pattern_formatter
&
)
=
de
lete
;
void
format
(
const
details
::
log_msg
&
msg
,
fmt
::
memory_buffer
&
dest
)
override
{
#ifndef SPDLOG_NO_DATETIME
...
...
include/spdlog/details/thread_pool.h
View file @
ef111ddb
...
...
@@ -39,8 +39,32 @@ struct async_msg
// should only be moved in or out of the queue..
async_msg
(
const
async_msg
&
)
=
delete
;
#if defined(_MSC_VER) && _MSC_VER <= 1800 // support for vs2013 move
async_msg
(
async_msg
&&
other
)
SPDLOG_NOEXCEPT
:
msg_type
(
other
.
msg_type
),
level
(
other
.
level
),
time
(
other
.
time
),
thread_id
(
other
.
thread_id
),
raw
(
move
(
other
.
raw
)),
msg_id
(
other
.
msg_id
),
worker_ptr
(
std
::
move
(
other
.
worker_ptr
))
{
}
async_msg
&
operator
=
(
async_msg
&&
other
)
SPDLOG_NOEXCEPT
{
msg_type
=
other
.
msg_type
;
level
=
other
.
level
;
time
=
other
.
time
;
thread_id
=
other
.
thread_id
;
raw
=
std
::
move
(
other
.
raw
);
msg_id
=
other
.
msg_id
;
worker_ptr
=
std
::
move
(
other
.
worker_ptr
);
return
*
this
;
}
#else
async_msg
(
async_msg
&&
other
)
=
default
;
async_msg
&
operator
=
(
async_msg
&&
other
)
=
default
;
#endif
// construct from log_msg with given type
async_msg
(
async_logger_ptr
&&
worker
,
async_msg_type
the_type
,
details
::
log_msg
&&
m
)
...
...
@@ -149,7 +173,9 @@ private:
void
worker_loop_
()
{
while
(
process_next_msg_
())
{};
while
(
process_next_msg_
())
{
};
}
// process next message in the queue
...
...
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