Small. Fast. Reliable.
Choose any three.
*** 180,186 ****
  _[Consider instead, using localtime_r which is reentrant and may be used
  *without* expensive mutex locking. Altough non-standard it's available
  on most Unixes --hauk]_ But it is not available on windows, as far as I
! am aware. --drh _[What about using localtime_r, and on systems where it
  is unavailable defining it as sqliteOsEnterMutext() ; locatime() ; sqliteOsLeaveMutex()
  so that non-windows systems get the maximum advantage, with almost zero
  code impact?]_ -- AdamBerger
--- 180,186 ----
  _[Consider instead, using localtime_r which is reentrant and may be used
  *without* expensive mutex locking. Altough non-standard it's available
  on most Unixes --hauk]_ But it is not available on windows, as far as I
! am aware. --drh On winodws localtime() is thread-safe if the MT c runtime is used. The MT runtime uses thread locale storage for the static variables ,this kind of functions use.--gr _[What about using localtime_r, and on systems where it
  is unavailable defining it as sqliteOsEnterMutext() ; locatime() ; sqliteOsLeaveMutex()
  so that non-windows systems get the maximum advantage, with almost zero
  code impact?]_ -- AdamBerger