此方法是 OMGuard 類別的建構子。它會鎖定使用者物件的互斥旗標。
Public
OMGuard (const OMProtected& pObj, bool needInstrumentation = true);
pObj
指定受保護的使用者物件
needInstrumentation
新增以用於支援動畫