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
3b009f5a
Commit
3b009f5a
authored
Oct 05, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed forward<worker_ptr> to std::move in async logger
parent
36112371
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/spdlog/details/thread_pool.h
include/spdlog/details/thread_pool.h
+3
-3
No files found.
include/spdlog/details/thread_pool.h
View file @
3b009f5a
...
...
@@ -75,13 +75,13 @@ struct async_msg
,
time
(
m
.
time
)
,
thread_id
(
m
.
thread_id
)
,
msg_id
(
m
.
msg_id
)
,
worker_ptr
(
std
::
forward
<
async_logger_ptr
>
(
worker
))
,
worker_ptr
(
std
::
move
(
worker
))
{
fmt_helper
::
append_buf
(
m
.
raw
,
raw
);
}
async_msg
(
async_logger_ptr
&&
worker
,
async_msg_type
the_type
)
:
async_msg
(
std
::
forward
<
async_logger_ptr
>
(
worker
),
the_type
,
details
::
log_msg
())
:
async_msg
(
std
::
move
(
worker
),
the_type
,
details
::
log_msg
())
{
}
...
...
@@ -151,7 +151,7 @@ public:
void
post_log
(
async_logger_ptr
&&
worker_ptr
,
details
::
log_msg
&&
msg
,
async_overflow_policy
overflow_policy
)
{
async_msg
async_m
(
std
::
forward
<
async_logger_ptr
>
(
worker_ptr
),
async_msg_type
::
log
,
std
::
forward
<
log_msg
>
(
msg
));
async_msg
async_m
(
std
::
move
(
worker_ptr
),
async_msg_type
::
log
,
std
::
forward
<
log_msg
>
(
msg
));
post_async_msg_
(
std
::
move
(
async_m
),
overflow_policy
);
}
...
...
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