mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-21 16:49:10 +01:00
* add note
This commit is contained in:
parent
3eae716a2d
commit
905cad56d8
1 changed files with 5 additions and 0 deletions
5
Log.cpp
5
Log.cpp
|
@ -85,6 +85,11 @@ namespace log {
|
||||||
return m_LastDateTime;
|
return m_LastDateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @note This function better to be run in separate thread due to disk i/o.
|
||||||
|
* Unfortunately, with current startup process with late fork() this
|
||||||
|
* will give us nothing but pain. Maybe later. See in NetDb as example.
|
||||||
|
*/
|
||||||
void Log::Process() {
|
void Log::Process() {
|
||||||
std::unique_lock<std::mutex> l(m_OutputLock);
|
std::unique_lock<std::mutex> l(m_OutputLock);
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue