DMTCP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | List of all members
dmtcp::Semaphore Class Reference

#include <sysvipc.h>

Inheritance diagram for dmtcp::Semaphore:
dmtcp::SysVObj

Public Member Functions

 Semaphore (int semid, int realSemid, key_t key, int nsems, int semflg)
 
 ~Semaphore ()
 
void on_semop (struct sembuf *sops, unsigned nsops)
 
virtual bool isStale ()
 
virtual void resetOnFork ()
 
virtual void leaderElection ()
 
virtual void preCkptDrain ()
 
virtual void preCheckpoint ()
 
virtual void postRestart ()
 
virtual void refill (bool isRestart)
 
virtual void preResume ()
 
- Public Member Functions inherited from dmtcp::SysVObj
 SysVObj (int id, int realId, int key, int flags)
 
virtual ~SysVObj ()
 
int virtualId ()
 
bool isCkptLeader ()
 

Additional Inherited Members

- Protected Attributes inherited from dmtcp::SysVObj
int _id
 
int _realId
 
key_t _key
 
int _flags
 
bool _isCkptLeader
 

Detailed Description

Definition at line 237 of file sysvipc.h.

Constructor & Destructor Documentation

Semaphore::Semaphore ( int  semid,
int  realSemid,
key_t  key,
int  nsems,
int  semflg 
)

Definition at line 698 of file sysvipc.cpp.

dmtcp::Semaphore::~Semaphore ( )
inline

Definition at line 246 of file sysvipc.h.

Member Function Documentation

bool Semaphore::isStale ( )
virtual

Implements dmtcp::SysVObj.

Definition at line 729 of file sysvipc.cpp.

void Semaphore::leaderElection ( )
virtual

Implements dmtcp::SysVObj.

Definition at line 746 of file sysvipc.cpp.

void Semaphore::on_semop ( struct sembuf *  sops,
unsigned  nsops 
)

Definition at line 721 of file sysvipc.cpp.

void Semaphore::postRestart ( )
virtual

Implements dmtcp::SysVObj.

Definition at line 781 of file sysvipc.cpp.

void Semaphore::preCheckpoint ( )
virtual

Implements dmtcp::SysVObj.

Definition at line 777 of file sysvipc.cpp.

void Semaphore::preCkptDrain ( )
virtual

Implements dmtcp::SysVObj.

Definition at line 766 of file sysvipc.cpp.

virtual void dmtcp::Semaphore::preResume ( )
inlinevirtual

Implements dmtcp::SysVObj.

Definition at line 256 of file sysvipc.h.

void Semaphore::refill ( bool  isRestart)
virtual

Implements dmtcp::SysVObj.

Definition at line 794 of file sysvipc.cpp.

void Semaphore::resetOnFork ( )
virtual

Implements dmtcp::SysVObj.

Definition at line 739 of file sysvipc.cpp.


The documentation for this class was generated from the following files: