MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnUnlockNodeForChanges

Function xnUnlockNodeForChanges

Source/OpenNI/XnOpenNI.cpp:3301–3322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3299}
3300
3301XN_C_API XnStatus xnUnlockNodeForChanges(XnNodeHandle hInstance, XnLockHandle hLock)
3302{
3303 XnStatus nRetVal = XN_STATUS_OK;
3304
3305 // validate
3306 XN_VALIDATE_INPUT_PTR(hInstance);
3307 if (hInstance->LockData.nCurrentLock != hLock)
3308 {
3309 return (XN_STATUS_BAD_PARAM);
3310 }
3311
3312 if (xnIsCapabilitySupported(hInstance, XN_CAPABILITY_LOCK_AWARE))
3313 {
3314 nRetVal = xnSetLockStateImpl(hInstance, FALSE);
3315 XN_IS_STATUS_OK(nRetVal);
3316 }
3317
3318 // and remove lock
3319 hInstance->LockData.nCurrentLock = 0;
3320
3321 return (XN_STATUS_OK);
3322}
3323
3324XN_C_API XnStatus xnLockedNodeStartChanges(XnNodeHandle hInstance, XnLockHandle hLock)
3325{

Callers 4

UnlockForChangesMethod · 0.85
DestroyMethod · 0.85
RemoveNodeMethod · 0.85

Calls 2

xnIsCapabilitySupportedFunction · 0.85
xnSetLockStateImplFunction · 0.85

Tested by

no test coverage detected