Working lock and control variables