In file lock.h:

int lock_check

(const char* name, char* info)

Check if a lock exists.

Documentation

Check if a lock exists.

Checks for the existence of a lock. If the lock does not exist, LKR_OK will be returned. If the lock exists, a PID (an integer greater than zero) will be returned. Please refer to the documentation for the LKR_x constants for more information.

Parameters:
name - the name of the resource to be checked (filename of the lock, too).
info - if the lock exists, its info field is copied to the supplied string.
Returns:
One of the LKR_x result codes.

Alphabetic index



This page was generated with the help of DOC++.