X2 Standard  Version 1.24
Public Member Functions | List of all members
X2MutexLocker Class Reference

The X2MutexLocker provides a cross-platform utility to lock and unlock a MutexInterface. More...

#include <mutexinterface.h>

Public Member Functions

 X2MutexLocker (MutexInterface *pIOMutex)
 
 ~X2MutexLocker ()
 

Detailed Description

The X2MutexLocker provides a cross-platform utility to lock and unlock a MutexInterface.

A convienent helper ensures perfect mutex unlock for every lock, typically used to serialize device io calls. Simply declare a local instance of this object which automatically locks the mutex and unlocks the mutex when it goes out of scope.

Constructor & Destructor Documentation

◆ X2MutexLocker()

X2MutexLocker::X2MutexLocker ( MutexInterface pIOMutex)
inline

The constructor that automatically locks the MutexInterface passed in.

◆ ~X2MutexLocker()

X2MutexLocker::~X2MutexLocker ( )
inline

The destructor that automatically unlocks the MutexInterface.


The documentation for this class was generated from the following file:
X2 Examples
(C) Software Bisque, Inc. All rights reserved.