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
cb9c984a
Commit
cb9c984a
authored
Jul 24, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
registery and periodic flusher fixes.
parent
516a8e42
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
89 additions
and
95 deletions
+89
-95
example.vcxproj
example/example.vcxproj
+3
-3
async.h
include/spdlog/async.h
+6
-14
periodic_worker.h
include/spdlog/details/periodic_worker.h
+11
-16
registry.h
include/spdlog/details/registry.h
+58
-53
spdlog.h
include/spdlog/spdlog.h
+6
-0
tweakme.h
include/spdlog/tweakme.h
+0
-9
tests.vcxproj.user
tests/tests.vcxproj.user
+5
-0
No files found.
example/example.vcxproj
View file @
cb9c984a
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<ConfigurationType>
Application
</ConfigurationType>
<UseDebugLibraries>
true
</UseDebugLibraries>
<UseDebugLibraries>
true
</UseDebugLibraries>
<PlatformToolset>
v1
20
</PlatformToolset>
<PlatformToolset>
v1
41
</PlatformToolset>
<CharacterSet>
Unicode
</CharacterSet>
<CharacterSet>
Unicode
</CharacterSet>
</PropertyGroup>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
Label=
"Configuration"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|x64'"
Label=
"Configuration"
>
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
Application
</ConfigurationType>
<ConfigurationType>
Application
</ConfigurationType>
<UseDebugLibraries>
false
</UseDebugLibraries>
<UseDebugLibraries>
false
</UseDebugLibraries>
<PlatformToolset>
v1
20
</PlatformToolset>
<PlatformToolset>
v1
41
</PlatformToolset>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
<WholeProgramOptimization>
true
</WholeProgramOptimization>
<CharacterSet>
Unicode
</CharacterSet>
<CharacterSet>
Unicode
</CharacterSet>
</PropertyGroup>
</PropertyGroup>
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<ClCompile>
<ClCompile>
<PrecompiledHeader>
<PrecompiledHeader>
</PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>
Level
4
</WarningLevel>
<WarningLevel>
Level
3
</WarningLevel>
<Optimization>
Disabled
</Optimization>
<Optimization>
Disabled
</Optimization>
<PreprocessorDefinitions>
WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PreprocessorDefinitions>
WIN32;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<AdditionalIncludeDirectories>
..\include;%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>
..\include;%(AdditionalIncludeDirectories)
</AdditionalIncludeDirectories>
...
...
include/spdlog/async.h
View file @
cb9c984a
...
@@ -39,16 +39,10 @@ struct async_factory_impl
...
@@ -39,16 +39,10 @@ struct async_factory_impl
static
std
::
shared_ptr
<
async_logger
>
create
(
const
std
::
string
&
logger_name
,
SinkArgs
&&
...
args
)
static
std
::
shared_ptr
<
async_logger
>
create
(
const
std
::
string
&
logger_name
,
SinkArgs
&&
...
args
)
{
{
using
details
::
registry
;
using
details
::
registry
;
std
::
lock_guard
<
std
::
recursive_mutex
>
lock
(
registry
::
instance
().
tp_mutex
());
auto
tp
=
registry
::
instance
().
get_thread_pool
();
if
(
tp
==
nullptr
)
{
tp
=
std
::
make_shared
<
details
::
thread_pool
>
(
details
::
default_async_q_size
,
1
);
registry
::
instance
().
set_thread_pool
(
tp
);
}
auto
sink
=
std
::
make_shared
<
Sink
>
(
std
::
forward
<
SinkArgs
>
(
args
)...);
auto
sink
=
std
::
make_shared
<
Sink
>
(
std
::
forward
<
SinkArgs
>
(
args
)...);
// create default tp if not already exists.
auto
tp
=
registry
::
instance
().
create_tp_once
(
details
::
default_async_q_size
,
1
);
auto
new_logger
=
std
::
make_shared
<
async_logger
>
(
logger_name
,
std
::
move
(
sink
),
std
::
move
(
tp
),
OverflowPolicy
);
auto
new_logger
=
std
::
make_shared
<
async_logger
>
(
logger_name
,
std
::
move
(
sink
),
std
::
move
(
tp
),
OverflowPolicy
);
registry
::
instance
().
register_and_init
(
new_logger
);
registry
::
instance
().
register_and_init
(
new_logger
);
return
new_logger
;
return
new_logger
;
...
@@ -73,15 +67,13 @@ inline std::shared_ptr<spdlog::logger> create_async_nb(const std::string &logger
...
@@ -73,15 +67,13 @@ inline std::shared_ptr<spdlog::logger> create_async_nb(const std::string &logger
// set global thread pool.
// set global thread pool.
inline
void
init_thread_pool
(
size_t
q_size
,
size_t
thread_count
)
inline
void
init_thread_pool
(
size_t
q_size
,
size_t
thread_count
)
{
{
using
details
::
registry
;
auto
tp
=
std
::
make_shared
<
details
::
thread_pool
>
(
q_size
,
thread_count
);
using
details
::
thread_pool
;
details
::
registry
::
instance
().
set_tp
(
std
::
move
(
tp
));
auto
tp
=
std
::
make_shared
<
thread_pool
>
(
q_size
,
thread_count
);
registry
::
instance
().
set_thread_pool
(
std
::
move
(
tp
));
}
}
// get the global thread pool.
// get the global thread pool.
inline
std
::
shared_ptr
<
spdlog
::
details
::
thread_pool
>
thread_pool
()
inline
std
::
shared_ptr
<
spdlog
::
details
::
thread_pool
>
thread_pool
()
{
{
return
details
::
registry
::
instance
().
get_t
hread_pool
();
return
details
::
registry
::
instance
().
get_t
p
();
}
}
}
// namespace spdlog
}
// namespace spdlog
include/spdlog/details/periodic_worker.h
View file @
cb9c984a
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
#include <functional>
#include <functional>
#include <mutex>
#include <mutex>
#include <thread>
#include <thread>
namespace
spdlog
{
namespace
spdlog
{
namespace
details
{
namespace
details
{
...
@@ -26,22 +25,19 @@ class periodic_worker
...
@@ -26,22 +25,19 @@ class periodic_worker
public
:
public
:
periodic_worker
(
std
::
function
<
void
()
>
callback_fun
,
std
::
chrono
::
seconds
interval
)
periodic_worker
(
std
::
function
<
void
()
>
callback_fun
,
std
::
chrono
::
seconds
interval
)
{
{
if
(
interval
==
std
::
chrono
::
seconds
::
zero
())
active_
=
(
interval
>
std
::
chrono
::
seconds
::
zero
());
if
(
!
active_
)
{
{
active_
=
false
;
return
;
return
;
}
}
active_
=
true
;
flusher_thread_
=
std
::
thread
([
callback_fun
,
interval
,
this
]()
{
worker_thread_
=
std
::
thread
([
this
,
callback_fun
,
interval
]()
{
for
(;;)
for
(;;)
{
{
std
::
unique_lock
<
std
::
mutex
>
lock
(
this
->
mutex_
);
std
::
unique_lock
<
std
::
mutex
>
lock
(
this
->
mutex_
);
bool
should_terminate
=
this
->
cv_
.
wait_for
(
lock
,
interval
,
[
this
]
{
if
(
this
->
cv_
.
wait_for
(
lock
,
interval
,
[
this
]
{
return
!
this
->
active_
;
}))
return
!
this
->
active_
;
});
if
(
should_terminate
)
{
{
break
;
return
;
// active_ == false, so exit this thread
}
}
callback_fun
();
callback_fun
();
}
}
...
@@ -51,24 +47,23 @@ public:
...
@@ -51,24 +47,23 @@ public:
periodic_worker
(
const
periodic_worker
&
)
=
delete
;
periodic_worker
(
const
periodic_worker
&
)
=
delete
;
periodic_worker
&
operator
=
(
const
periodic_worker
&
)
=
delete
;
periodic_worker
&
operator
=
(
const
periodic_worker
&
)
=
delete
;
// stop the
back
thread and join it
// stop the
worker
thread and join it
~
periodic_worker
()
~
periodic_worker
()
{
{
if
(
!
active_
)
if
(
worker_thread_
.
joinable
()
)
{
{
return
;
}
{
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
mutex_
);
active_
=
false
;
active_
=
false
;
}
}
cv_
.
notify_one
();
cv_
.
notify_one
();
flusher_thread_
.
join
();
worker_thread_
.
join
();
}
}
}
private
:
private
:
bool
active_
;
bool
active_
;
std
::
thread
flush
er_thread_
;
std
::
thread
work
er_thread_
;
std
::
mutex
mutex_
;
std
::
mutex
mutex_
;
std
::
condition_variable
cv_
;
std
::
condition_variable
cv_
;
};
};
...
...
include/spdlog/details/registry.h
View file @
cb9c984a
...
@@ -24,18 +24,15 @@ namespace spdlog {
...
@@ -24,18 +24,15 @@ namespace spdlog {
namespace
details
{
namespace
details
{
class
thread_pool
;
class
thread_pool
;
template
<
typename
Mutex
>
class
registry
class
registry_t
{
{
public
:
public
:
using
MutexT
=
Mutex
;
registry
(
const
registry
&
)
=
delete
;
registry
&
operator
=
(
const
registry
&
)
=
delete
;
registry_t
<
Mutex
>
(
const
registry_t
<
Mutex
>
&
)
=
delete
;
registry_t
<
Mutex
>
&
operator
=
(
const
registry_t
<
Mutex
>
&
)
=
delete
;
void
register_logger
(
std
::
shared_ptr
<
logger
>
new_logger
)
void
register_logger
(
std
::
shared_ptr
<
logger
>
new_logger
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map
_mutex_
);
auto
logger_name
=
new_logger
->
name
();
auto
logger_name
=
new_logger
->
name
();
throw_if_exists_
(
logger_name
);
throw_if_exists_
(
logger_name
);
loggers_
[
logger_name
]
=
new_logger
;
loggers_
[
logger_name
]
=
new_logger
;
...
@@ -43,7 +40,7 @@ public:
...
@@ -43,7 +40,7 @@ public:
void
register_and_init
(
std
::
shared_ptr
<
logger
>
new_logger
)
void
register_and_init
(
std
::
shared_ptr
<
logger
>
new_logger
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map
_mutex_
);
auto
logger_name
=
new_logger
->
name
();
auto
logger_name
=
new_logger
->
name
();
throw_if_exists_
(
logger_name
);
throw_if_exists_
(
logger_name
);
...
@@ -58,33 +55,44 @@ public:
...
@@ -58,33 +55,44 @@ public:
new_logger
->
set_level
(
level_
);
new_logger
->
set_level
(
level_
);
new_logger
->
flush_on
(
flush_level_
);
new_logger
->
flush_on
(
flush_level_
);
//
A
dd to registry
//
a
dd to registry
loggers_
[
logger_name
]
=
new_logger
;
loggers_
[
logger_name
]
=
new_logger
;
}
}
std
::
shared_ptr
<
logger
>
get
(
const
std
::
string
&
logger_name
)
std
::
shared_ptr
<
logger
>
get
(
const
std
::
string
&
logger_name
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map
_mutex_
);
auto
found
=
loggers_
.
find
(
logger_name
);
auto
found
=
loggers_
.
find
(
logger_name
);
return
found
==
loggers_
.
end
()
?
nullptr
:
found
->
second
;
return
found
==
loggers_
.
end
()
?
nullptr
:
found
->
second
;
}
}
void
set_t
hread_pool
(
std
::
shared_ptr
<
thread_pool
>
tp
)
void
set_t
p
(
std
::
shared_ptr
<
thread_pool
>
tp
)
{
{
std
::
lock_guard
<
decltype
(
tp_mutex_
)
>
lock
(
tp_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
tp_mutex_
);
tp_
=
std
::
move
(
tp
);
tp_
=
std
::
move
(
tp
);
}
}
std
::
shared_ptr
<
thread_pool
>
get_thread_pool
()
// create tp only if not exists already
std
::
shared_ptr
<
thread_pool
>
create_tp_once
(
size_t
queue_size
,
size_t
n_threads
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
tp_mutex_
);
if
(
tp_
==
nullptr
)
{
{
std
::
lock_guard
<
decltype
(
tp_mutex_
)
>
lock
(
tp_mutex_
);
tp_
=
std
::
make_shared
<
details
::
thread_pool
>
(
queue_size
,
n_threads
);
}
return
tp_
;
}
std
::
shared_ptr
<
thread_pool
>
get_tp
()
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
tp_mutex_
);
return
tp_
;
return
tp_
;
}
}
// Set global formatter. Each sink in each logger will get a clone of this object
// Set global formatter. Each sink in each logger will get a clone of this object
void
set_formatter
(
std
::
unique_ptr
<
formatter
>
formatter
)
void
set_formatter
(
std
::
unique_ptr
<
formatter
>
formatter
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map
_mutex_
);
formatter_
=
std
::
move
(
formatter
);
formatter_
=
std
::
move
(
formatter
);
for
(
auto
&
l
:
loggers_
)
for
(
auto
&
l
:
loggers_
)
{
{
...
@@ -94,7 +102,7 @@ public:
...
@@ -94,7 +102,7 @@ public:
void
set_level
(
level
::
level_enum
log_level
)
void
set_level
(
level
::
level_enum
log_level
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map
_mutex_
);
for
(
auto
&
l
:
loggers_
)
for
(
auto
&
l
:
loggers_
)
{
{
l
.
second
->
set_level
(
log_level
);
l
.
second
->
set_level
(
log_level
);
...
@@ -104,7 +112,7 @@ public:
...
@@ -104,7 +112,7 @@ public:
void
flush_on
(
level
::
level_enum
log_level
)
void
flush_on
(
level
::
level_enum
log_level
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map
_mutex_
);
for
(
auto
&
l
:
loggers_
)
for
(
auto
&
l
:
loggers_
)
{
{
l
.
second
->
flush_on
(
log_level
);
l
.
second
->
flush_on
(
log_level
);
...
@@ -114,13 +122,14 @@ public:
...
@@ -114,13 +122,14 @@ public:
void
flush_every
(
std
::
chrono
::
seconds
interval
)
void
flush_every
(
std
::
chrono
::
seconds
interval
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
flusher
_mutex_
);
std
::
function
<
void
()
>
clbk
(
std
::
bind
(
&
registry
_t
::
flush_all
,
this
));
std
::
function
<
void
()
>
clbk
(
std
::
bind
(
&
registry
::
flush_all
,
this
));
periodic_flusher_
.
reset
(
new
periodic_worker
(
clbk
,
interval
));
periodic_flusher_
.
reset
(
new
periodic_worker
(
clbk
,
interval
));
}
}
void
set_error_handler
(
log_err_handler
handler
)
void
set_error_handler
(
log_err_handler
handler
)
{
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map_mutex_
);
for
(
auto
&
l
:
loggers_
)
for
(
auto
&
l
:
loggers_
)
{
{
l
.
second
->
set_error_handler
(
handler
);
l
.
second
->
set_error_handler
(
handler
);
...
@@ -130,52 +139,66 @@ public:
...
@@ -130,52 +139,66 @@ public:
void
apply_all
(
std
::
function
<
void
(
std
::
shared_ptr
<
logger
>
)
>
fun
)
void
apply_all
(
std
::
function
<
void
(
std
::
shared_ptr
<
logger
>
)
>
fun
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map
_mutex_
);
for
(
auto
&
l
:
loggers_
)
for
(
auto
&
l
:
loggers_
)
{
{
fun
(
l
.
second
);
fun
(
l
.
second
);
}
}
}
}
void
flush_all
()
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map_mutex_
);
for
(
auto
&
l
:
loggers_
)
{
l
.
second
->
flush
();
}
}
void
drop
(
const
std
::
string
&
logger_name
)
void
drop
(
const
std
::
string
&
logger_name
)
{
{
std
::
lock_guard
<
Mutex
>
lock
(
loggers
_mutex_
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map
_mutex_
);
loggers_
.
erase
(
logger_name
);
loggers_
.
erase
(
logger_name
);
}
}
void
drop_all
()
void
drop_all
()
{
{
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
logger_map_mutex_
);
std
::
lock_guard
<
Mutex
>
lock
(
loggers_mutex_
);
loggers_
.
clear
();
loggers_
.
clear
();
}
}
// clean all reasources and threads started by the registry
void
shutdown
()
{
{
std
::
lock_guard
<
decltype
(
tp_mutex_
)
>
lock
(
tp_mutex_
);
{
tp_
.
reset
(
);
std
::
lock_guard
<
std
::
mutex
>
lock
(
flusher_mutex_
);
}
periodic_flusher_
.
reset
();
}
}
std
::
recursive_mutex
&
tp_mutex
()
drop_all
();
{
{
return
tp_mutex_
;
std
::
lock_guard
<
std
::
mutex
>
lock
(
tp_mutex_
);
tp_
.
reset
();
}
}
}
static
registry
_t
<
Mutex
>
&
instance
()
static
registry
&
instance
()
{
{
static
registry
_t
<
Mutex
>
s_instance
;
static
registry
s_instance
;
return
s_instance
;
return
s_instance
;
}
}
private
:
private
:
registry
_t
<
Mutex
>
()
registry
()
:
formatter_
(
new
pattern_formatter
(
"%+"
))
:
formatter_
(
new
pattern_formatter
(
"%+"
))
{
{
}
}
~
registry
_t
<
Mutex
>
()
~
registry
()
{
{
periodic_flusher_
.
reset
();
/*std::lock_guard<std::mutex> lock(flusher_mutex_);
periodic_flusher_.reset();*/
}
}
void
throw_if_exists_
(
const
std
::
string
&
logger_name
)
void
throw_if_exists_
(
const
std
::
string
&
logger_name
)
...
@@ -186,19 +209,9 @@ private:
...
@@ -186,19 +209,9 @@ private:
}
}
}
}
void
flush_all
()
std
::
mutex
logger_map_mutex_
,
flusher_mutex_
;
{
std
::
mutex
tp_mutex_
;
std
::
lock_guard
<
Mutex
>
lock
(
loggers_mutex_
);
for
(
auto
&
l
:
loggers_
)
{
l
.
second
->
flush
();
}
}
Mutex
loggers_mutex_
;
std
::
recursive_mutex
tp_mutex_
;
std
::
unordered_map
<
std
::
string
,
std
::
shared_ptr
<
logger
>>
loggers_
;
std
::
unordered_map
<
std
::
string
,
std
::
shared_ptr
<
logger
>>
loggers_
;
// std::unique_ptr<formatter> formatter_{ new pattern_formatter("%+") };
std
::
unique_ptr
<
formatter
>
formatter_
;
std
::
unique_ptr
<
formatter
>
formatter_
;
level
::
level_enum
level_
=
level
::
info
;
level
::
level_enum
level_
=
level
::
info
;
level
::
level_enum
flush_level_
=
level
::
off
;
level
::
level_enum
flush_level_
=
level
::
off
;
...
@@ -207,13 +220,5 @@ private:
...
@@ -207,13 +220,5 @@ private:
std
::
unique_ptr
<
periodic_worker
>
periodic_flusher_
;
std
::
unique_ptr
<
periodic_worker
>
periodic_flusher_
;
};
};
#ifdef SPDLOG_NO_REGISTRY_MUTEX
#include "spdlog/details/null_mutex.h"
using
registry
=
registry_t
<
spdlog
::
details
::
null_mutex
>
;
#else
#include <mutex>
using
registry
=
registry_t
<
std
::
mutex
>
;
#endif
}
// namespace details
}
// namespace details
}
// namespace spdlog
}
// namespace spdlog
include/spdlog/spdlog.h
View file @
cb9c984a
...
@@ -117,6 +117,12 @@ inline void drop_all()
...
@@ -117,6 +117,12 @@ inline void drop_all()
details
::
registry
::
instance
().
drop_all
();
details
::
registry
::
instance
().
drop_all
();
}
}
// stop any running threads started by spdlog and clean registry loggers
void
shutdown
()
{
details
::
registry
::
instance
().
shutdown
();
}
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//
//
// Trace & Debug can be switched on/off at compile time for zero cost debug
// Trace & Debug can be switched on/off at compile time for zero cost debug
...
...
include/spdlog/tweakme.h
View file @
cb9c984a
...
@@ -68,15 +68,6 @@
...
@@ -68,15 +68,6 @@
// #define SPDLOG_TRACE_ON
// #define SPDLOG_TRACE_ON
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncomment to avoid locking in the registry operations (spdlog::get(),
// spdlog::drop() spdlog::register()).
// Use only if your code never modifies concurrently the registry.
// Note that upon creating a logger the registry is modified by spdlog..
//
// #define SPDLOG_NO_REGISTRY_MUTEX
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
// Uncomment to avoid spdlog's usage of atomic log levels
// Uncomment to avoid spdlog's usage of atomic log levels
// Use only if your code never modifies a logger's log levels concurrently by
// Use only if your code never modifies a logger's log levels concurrently by
...
...
tests/tests.vcxproj.user
0 → 100644
View file @
cb9c984a
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"15.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<PropertyGroup
/>
</Project>
\ No newline at end of file
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