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
7cf34ce8
Commit
7cf34ce8
authored
Apr 08, 2015
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed return type in os::get_thread_id
parent
4dd31bf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
os.h
include/spdlog/details/os.h
+4
-3
No files found.
include/spdlog/details/os.h
View file @
7cf34ce8
...
...
@@ -171,7 +171,8 @@ inline int utc_minutes_offset(const std::tm& tm = details::os::localtime())
#endif
}
//Return current thread id as 64 bit integer
//Return current thread id as size_t
//It exists because the std::this_thread::get_id() is much slower(espcially under VS 2013)
inline
size_t
thread_id
()
{
...
...
@@ -182,9 +183,9 @@ inline size_t thread_id()
#ifdef _WIN32
return
::
GetCurrentThreadId
();
#elif __linux__
return
(
uint64_t
)
syscall
(
SYS_gettid
);
return
syscall
(
SYS_gettid
);
#else
return
(
uint64_t
)
pthread_self
();
return
pthread_self
();
#endif
#endif //SPDLOG_NO_THREAD_ID
}
...
...
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