Made Timer.__call__ thread-safe