add the Lock and Unlock of BinaryOperator