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
fd547193
Commit
fd547193
authored
Jul 26, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format
parent
420b17ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
include/spdlog/async.h
include/spdlog/async.h
+1
-1
include/spdlog/details/registry.h
include/spdlog/details/registry.h
+2
-4
No files found.
include/spdlog/async.h
View file @
fd547193
...
...
@@ -41,7 +41,7 @@ struct async_factory_impl
{
auto
&
registry_inst
=
details
::
registry
::
instance
();
//
create global thread pool if not already exists..
//
create global thread pool if not already exists..
std
::
lock_guard
<
std
::
recursive_mutex
>
(
registry_inst
.
tp_mutex
());
auto
tp
=
registry_inst
.
get_tp
();
if
(
tp
==
nullptr
)
...
...
include/spdlog/details/registry.h
View file @
fd547193
...
...
@@ -72,7 +72,6 @@ public:
tp_
=
std
::
move
(
tp
);
}
std
::
shared_ptr
<
thread_pool
>
get_tp
()
{
std
::
lock_guard
<
std
::
recursive_mutex
>
lock
(
tp_mutex_
);
...
...
@@ -173,7 +172,7 @@ public:
}
}
std
::
recursive_mutex
&
tp_mutex
()
std
::
recursive_mutex
&
tp_mutex
()
{
return
tp_mutex_
;
}
...
...
@@ -183,7 +182,6 @@ public:
static
registry
s_instance
;
return
s_instance
;
}
private:
registry
()
...
...
@@ -206,7 +204,7 @@ private:
}
std
::
mutex
logger_map_mutex_
,
flusher_mutex_
;
std
::
recursive_mutex
tp_mutex_
;
std
::
recursive_mutex
tp_mutex_
;
std
::
unordered_map
<
std
::
string
,
std
::
shared_ptr
<
logger
>>
loggers_
;
std
::
unique_ptr
<
formatter
>
formatter_
;
level
::
level_enum
level_
=
level
::
info
;
...
...
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