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
0358d115
Commit
0358d115
authored
Jul 03, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed std::string from async messages
parent
b4349e42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
thread_pool.h
include/spdlog/details/thread_pool.h
+3
-3
No files found.
include/spdlog/details/thread_pool.h
View file @
0358d115
...
...
@@ -29,7 +29,7 @@ struct async_msg
level
::
level_enum
level
;
log_clock
::
time_point
time
;
size_t
thread_id
;
std
::
string
txt
;
fmt
::
basic_memory_buffer
<
char
,
128
>
raw
;
size_t
msg_id
;
async_logger_ptr
worker_ptr
;
...
...
@@ -48,10 +48,10 @@ struct async_msg
,
level
(
m
.
level
)
,
time
(
m
.
time
)
,
thread_id
(
m
.
thread_id
)
,
txt
(
m
.
raw
.
data
(),
m
.
raw
.
size
())
,
msg_id
(
m
.
msg_id
)
,
worker_ptr
(
std
::
forward
<
async_logger_ptr
>
(
worker
))
{
fmt_helper
::
append_buf
(
m
.
raw
,
raw
);
}
async_msg
(
async_logger_ptr
&&
worker
,
async_msg_type
the_type
)
...
...
@@ -71,7 +71,7 @@ struct async_msg
msg
.
level
=
level
;
msg
.
time
=
time
;
msg
.
thread_id
=
thread_id
;
msg
.
raw
.
append
(
txt
.
data
(),
txt
.
data
()
+
txt
.
size
()
);
fmt_helper
::
append_buf
(
raw
,
msg
.
raw
);
msg
.
msg_id
=
msg_id
;
msg
.
color_range_start
=
0
;
msg
.
color_range_end
=
0
;
...
...
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