ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

ucommon::SharedProtocol Class Referenceabstract

#include <access.h>


class  Locking

Public Member Functions

virtual void share (void)
virtual void exclusive (void)

Protected Member Functions

virtual ~SharedProtocol ()
virtual void _share (void)=0
virtual void _unshare (void)=0

Detailed Description

An exclusive locking access interface base. This is an abstract class to form objects that will operate under an exclusive lock while being actively referenced by a smart pointer.

David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 122 of file access.h.

Constructor & Destructor Documentation

◆ ~SharedProtocol()

ucommon::SharedProtocol::~SharedProtocol ( )

Definition at line 25 of file access.cpp.

Member Function Documentation

◆ _share()

virtual void ucommon::SharedProtocol::_share ( void  )
protectedpure virtual

Access interface to share lock the object.

Referenced by ucommon::SharedProtocol::Locking::Locking().

◆ _unshare()

virtual void ucommon::SharedProtocol::_unshare ( void  )
protectedpure virtual

◆ exclusive()

void ucommon::SharedProtocol::exclusive ( void  )

Convert object to an exclusive lock. Many of our shared locking objects such as the "conditional lock" support the ability to switch between shared and exclusive locking modes. This derived protocol member allows one to temporarily assert exclusive locking when tied to such methods.

Definition at line 33 of file access.cpp.

◆ share()

void ucommon::SharedProtocol::share ( void  )

Share the lock with other referencers. Many of our shared locking objects support the ability to switch between shared and exclusive mode. This derived protocol member allows one to restore the lock to shared mode after it has been made exclusive.

Definition at line 37 of file access.cpp.

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