# File lib/logging/stats.rb, line 270
    def sync
      return yield if @mutex.nil?
      @mutex.synchronize {yield}
    end