fpmas 1.6
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
fpmas::synchro::hard::api::MutexRequest Struct Reference

#include <client_server.h>

Collaboration diagram for fpmas::synchro::hard::api::MutexRequest:
Collaboration graph
[legend]

Public Member Functions

 MutexRequest (DistributedId id, int source, MutexRequestType type)
 
bool operator== (const MutexRequest &other) const
 

Public Attributes

DistributedId id
 
int source
 
MutexRequestType type
 

Static Public Attributes

static const int LOCAL = -1
 

Detailed Description

Structure used to represent any type of request to an HardSyncMutex.

Constructor & Destructor Documentation

◆ MutexRequest()

fpmas::synchro::hard::api::MutexRequest::MutexRequest ( DistributedId  id,
int  source,
MutexRequestType  type 
)
inline

MutexRequest constructor.

Parameters
idid of the requested node
sourcerank of the process from which the request is coming
typerequest type

Member Function Documentation

◆ operator==()

bool fpmas::synchro::hard::api::MutexRequest::operator== ( const MutexRequest other) const
inline

Checks equality between two MutexRequests.

Two MutexRequests are equals if and only if they have the same type, id and source.

Parameters
otherMutexRequest to compare to this
Returns
true iff other is equal to this

Member Data Documentation

◆ LOCAL

const int fpmas::synchro::hard::api::MutexRequest::LOCAL = -1
static

Special source value used to indicate that the request is coming from the local process.

◆ id

DistributedId fpmas::synchro::hard::api::MutexRequest::id

Id of the requested node.

◆ source

int fpmas::synchro::hard::api::MutexRequest::source

Rank of the process from which the request is coming.

◆ type

MutexRequestType fpmas::synchro::hard::api::MutexRequest::type

Request type.


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