OP is talking about threads::shared#lock VARIABLE
In reply to Re^2: threads::shared locking via C API by Anonymous Monk in thread threads::shared locking via C API by halfcountplus