File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -190,8 +190,15 @@ namespace log4cplus
190
190
LOG4CPLUS_EXPORT void threadCleanup ();
191
191
192
192
// ! Initializes log4cplus.
193
+ // !
194
+ // ! \note using `log4cplus::Initializer` is preferred
193
195
LOG4CPLUS_EXPORT void initialize ();
194
196
197
+ // ! Deinitializes log4cplus.
198
+ // !
199
+ // ! \note using `log4cplus::Initializer` is preferred
200
+ LOG4CPLUS_EXPORT void deinitialize ();
201
+
195
202
// ! Set thread pool size.
196
203
LOG4CPLUS_EXPORT void setThreadPoolSize (std::size_t pool_size);
197
204
Original file line number Diff line number Diff line change @@ -112,8 +112,7 @@ Initializer::~Initializer ()
112
112
if (InitializerImpl::instance->count == 0 )
113
113
{
114
114
destroy = true ;
115
- shutdownThreadPool ();
116
- Logger::shutdown ();
115
+ deinitialize ();
117
116
}
118
117
}
119
118
if (destroy)
@@ -499,6 +498,14 @@ initialize ()
499
498
}
500
499
501
500
501
+ void
502
+ deinitialize ()
503
+ {
504
+ shutdownThreadPool ();
505
+ Logger::shutdown ();
506
+ }
507
+
508
+
502
509
void
503
510
threadCleanup ()
504
511
{
You can’t perform that action at this time.
0 commit comments