_CP_unlock_all is equivalent to the unlock BASIC statement.
int _CP_unlock_all()
This function returns -1 if an error occurs. The error code is contained in _CP_errno.
/* Releases all basic locks owned by the current process. */ _CP_unlock_all();
C functions overview, _CP_lock, _CP_unlock, _CP_unlock_all