2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * A simple lockfile class using WvStreams.
17 WvLockFile(WvStringParm _lockname
);
19 /** Check to make sure no lock is established or that it's owned by us. */
22 /** Creates the lockfile with the current pid. Returns success/failure. */
26 * Removes the lockfile if present. If there's no lockfile after,
27 * returns true, otherwise false.
32 * Returns one of three things:
33 * -1 if the lockfile exists, but is inaccessible.
34 * 0 if there is no lockfile, or the process is not running.
35 * >0 The pid of the known-running process that owns the lock.
43 #endif // __WVLOCKFILE_H