OuSob - File: /wwwroot/clipx/usr/include/wvstreams/wvlockfile.h
/* -*- Mode: C++ -*-
* Worldvisions Weaver Software:
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
* A simple lockfile class using WvStreams.
/** Check to make sure no lock is established or that it's owned by us. */
/** Creates the lockfile with the current pid. Returns success/failure. */
* Removes the lockfile if present. If there's no lockfile after,
* returns true, otherwise false.
* Returns one of three things:
* -1 if the lockfile exists, but is inaccessible.
* 0 if there is no lockfile, or the process is not running.
* >0 The pid of the known-running process that owns the lock.
#endif // __WVLOCKFILE_H