thread lock type xchg