make evevtloop timer interface thread safe