Thread-safe equivalent to python's time.strptime()?
According to the bug report, this doesn't happen if you call strptime
once before creating your threads. I've done a little testing which seems to confirm this. So just make any call to strptime
during initialization as a workaround.
Have you tried manually synchronizing it yourself? Possibly using the synchronization decorator from this recipe.