Eliminate mutex in performance critical thread