projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ea11d35
)
Unbreak access logging.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Wed, 8 May 2013 18:45:27 +0000
(20:45 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Wed, 8 May 2013 18:45:32 +0000
(20:45 +0200)
We forgot to wake up the logger thread.
accesslog.cpp
patch
|
blob
|
history
diff --git
a/accesslog.cpp
b/accesslog.cpp
index
6c4d367
..
9cd5be0
100644
(file)
--- a/
accesslog.cpp
+++ b/
accesslog.cpp
@@
-23,8
+23,11
@@
AccessLogThread::AccessLogThread(const string &filename)
void AccessLogThread::write(const ClientStats& client)
{
- MutexLock lock(&mutex);
- pending_writes.push_back(client);
+ {
+ MutexLock lock(&mutex);
+ pending_writes.push_back(client);
+ }
+ wakeup();
}
void AccessLogThread::do_work()