HOPS
HOPS class reference
Classes | Namespaces | Macros
MHO_LockFileHandler.hh File Reference
#include <csignal>
#include <cstdlib>
#include <unistd.h>
#include "MHO_DirectoryInterface.hh"
#include "MHO_Tokenizer.hh"

Go to the source code of this file.

Classes

struct  hops::lockfile_data
 struct lockfile_data - struct for holding data about the lock file's creation More...
 
class  hops::MHO_LockFileHandler
 Class MHO_LockFileHandler uses the singleton pattern. More...
 

Namespaces

 hops
 

Macros

#define LOCK_FILE_ERROR   -4
 
#define LOCK_FILESET_FAIL   -6
 
#define LOCK_PARSE_ERROR   -2
 
#define LOCK_PROCESS_HAS_PRIORITY   1
 
#define LOCK_PROCESS_NO_PRIORITY   -1
 
#define LOCK_STALE_ERROR   -3
 
#define LOCK_STATUS_OK   0
 
#define LOCK_TIMEOUT_ERROR   -5
 
#define MAX_LOCKNAME_LEN   512
 

Class Documentation

◆ hops::lockfile_data

struct hops::lockfile_data

struct lockfile_data - struct for holding data about the lock file's creation

Class Members
char active_directory[MAX_LOCKNAME_LEN]
char hostname[256]
char lockfile_name[MAX_LOCKNAME_LEN]
unsigned int pid
unsigned int seq_number
unsigned long int time_sec
unsigned long int time_usec
int validity

Macro Definition Documentation

◆ LOCK_FILE_ERROR

#define LOCK_FILE_ERROR   -4

◆ LOCK_FILESET_FAIL

#define LOCK_FILESET_FAIL   -6

◆ LOCK_PARSE_ERROR

#define LOCK_PARSE_ERROR   -2

◆ LOCK_PROCESS_HAS_PRIORITY

#define LOCK_PROCESS_HAS_PRIORITY   1

◆ LOCK_PROCESS_NO_PRIORITY

#define LOCK_PROCESS_NO_PRIORITY   -1

◆ LOCK_STALE_ERROR

#define LOCK_STALE_ERROR   -3

◆ LOCK_STATUS_OK

#define LOCK_STATUS_OK   0

◆ LOCK_TIMEOUT_ERROR

#define LOCK_TIMEOUT_ERROR   -5

◆ MAX_LOCKNAME_LEN

#define MAX_LOCKNAME_LEN   512