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
fd547193
Commit
fd547193
authored
Jul 26, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format
parent
420b17ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
async.h
include/spdlog/async.h
+1
-1
registry.h
include/spdlog/details/registry.h
+0
-2
No files found.
include/spdlog/async.h
View file @
fd547193
...
@@ -41,7 +41,7 @@ struct async_factory_impl
...
@@ -41,7 +41,7 @@ struct async_factory_impl
{
{
auto
&
registry_inst
=
details
::
registry
::
instance
();
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
());
std
::
lock_guard
<
std
::
recursive_mutex
>
(
registry_inst
.
tp_mutex
());
auto
tp
=
registry_inst
.
get_tp
();
auto
tp
=
registry_inst
.
get_tp
();
if
(
tp
==
nullptr
)
if
(
tp
==
nullptr
)
...
...
include/spdlog/details/registry.h
View file @
fd547193
...
@@ -72,7 +72,6 @@ public:
...
@@ -72,7 +72,6 @@ public:
tp_
=
std
::
move
(
tp
);
tp_
=
std
::
move
(
tp
);
}
}
std
::
shared_ptr
<
thread_pool
>
get_tp
()
std
::
shared_ptr
<
thread_pool
>
get_tp
()
{
{
std
::
lock_guard
<
std
::
recursive_mutex
>
lock
(
tp_mutex_
);
std
::
lock_guard
<
std
::
recursive_mutex
>
lock
(
tp_mutex_
);
...
@@ -184,7 +183,6 @@ public:
...
@@ -184,7 +183,6 @@ public:
return
s_instance
;
return
s_instance
;
}
}
private
:
private
:
registry
()
registry
()
:
formatter_
(
new
pattern_formatter
(
"%+"
))
:
formatter_
(
new
pattern_formatter
(
"%+"
))
...
...
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