Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbUnlockResource

Release any locks held by resource.

DECLARATION

CTDBRET ctdbDECL ctdbUnlockResource(CTHANDLE resource);

DESCRIPTION

Unlocks a resource. The resource is only unlocked if it was previously locked by ctdbFirstResource(), ctdbNextResource(), ctdbFindResource() or ctdbFindResourceByName().

  • resource is a handle allocated by ctdbAllocHandle().

RETURN

ctdbUlnlockResource() returns CTDBRET_OK on success.

EXAMPLE

if (ctdbIsResourceLocked(hRes))

ctdbUnlockResource(hRes);


SEE ALSO

ctdbAllocResource(), ctdbFreeResource(), ctdbAddResource(), ctdbDeleteResource(), ctdbUpdateResource(), ctdbFirstResource(), ctdbNextResource(), ctdbFindResource(), ctdbFindResourceByName(), ctdbGetResourceType(), ctdbSetResourceType(), ctdbGetResourceNumber(), ctdbSetResourceNumber(), ctdbGetResourceName(), ctdbSetResourceName(), ctdbGetResourceDataLength(), ctdbGetResourceData(), ctdbSetResourceData(), ctdbIsResourceLocked(), Locking

TOCIndex