tfel
Loading...
Searching...
No Matches
mfront::MFrontLock Struct Reference

The Great Mfront Lock. More...

#include </home/runner/work/tfel/tfel/mfront/include/MFront/MFrontLock.hxx>

Public Member Functions

 MFrontLock (const MFrontLock &)=delete
 MFrontLock (MFrontLock &&)=delete
MFrontLock & operator= (const MFrontLock &)=delete
MFrontLock & operator= (MFrontLock &&)=delete
void lock ()
 acquire the lock (recursive: only the outermost call acquires the underlying lock)
void unlock ()
 release the lock (only the outermost call releases the underlying lock)

Static Public Member Functions

static MFrontLock & getMFrontLock ()

Detailed Description

The Great Mfront Lock.

This lock is shared by all the mfront processes of a given user. It is used to serialize the accesses to the files which may be written concurrently by several mfront processes running in the same directory (in particular the files generated for external mfront files which can be used by several behaviours or material properties).

The lock is reentrant for a given process. It is designed to serialize accesses between processes and not between threads.


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