
30 Jun
2004
30 Jun
'04
8:48 p.m.
John Torjo wrote:
Dear boosters,
Worked some more on the logging library, and here's what's new:
- added ***documentation*** - added samples - made static library (improved compilation times) - added efficient thread-safe logger, which does the logging on a dedicated thread
why do you route the log to a different thread instead of writing it directly ? On the one hand you provide macros to be able to optimize the logger code away if it is not desired, on the other hand you accept a full context switch (and mutex lock and...) for each single message ! May be, if you want to be fancy and fashionable, you could put this kind of 'strategy' into a trait... Regards, Stefan