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
0684b4f3
Commit
0684b4f3
authored
Apr 07, 2015
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use size_t to better represent thread id across platforms
parent
7105fdad
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
common.h
include/spdlog/common.h
+1
-0
async_log_helper.h
include/spdlog/details/async_log_helper.h
+1
-1
log_msg.h
include/spdlog/details/log_msg.h
+1
-1
os.h
include/spdlog/details/os.h
+1
-1
No files found.
include/spdlog/common.h
View file @
0684b4f3
...
...
@@ -59,6 +59,7 @@ using log_clock = std::chrono::system_clock;
using
sink_ptr
=
std
::
shared_ptr
<
sinks
::
sink
>
;
using
sinks_init_list
=
std
::
initializer_list
<
sink_ptr
>
;
using
formatter_ptr
=
std
::
shared_ptr
<
spdlog
::
formatter
>
;
using
thread_id
=
std
::
size_t
;
//Log level enum
namespace
level
...
...
include/spdlog/details/async_log_helper.h
View file @
0684b4f3
...
...
@@ -59,7 +59,7 @@ class async_log_helper
std
::
string
logger_name
;
level
::
level_enum
level
;
log_clock
::
time_point
time
;
uint64_t
thread_id
;
thread_id
thread_id
;
std
::
string
txt
;
async_msg
()
=
default
;
...
...
include/spdlog/details/log_msg.h
View file @
0684b4f3
...
...
@@ -92,7 +92,7 @@ struct log_msg
std
::
string
logger_name
;
level
::
level_enum
level
;
log_clock
::
time_point
time
;
uint64_t
thread_id
;
thread_id
thread_id
;
fmt
::
MemoryWriter
raw
;
fmt
::
MemoryWriter
formatted
;
};
...
...
include/spdlog/details/os.h
View file @
0684b4f3
...
...
@@ -172,7 +172,7 @@ inline int utc_minutes_offset(const std::tm& tm = details::os::localtime())
}
//Return current thread id as 64 bit integer
inline
uint64
_t
thread_id
()
inline
size
_t
thread_id
()
{
#ifdef _WIN32
...
...
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