NDEVR
API Documentation
RDesignLock

Used to lock a particular model for editing (DEPRECIATED). More...

Collaboration diagram for RDesignLock:
[legend]

Public Member Functions

 RDesignLock (DesignObjectLookup *lookup, const UUID &model)
 Constructs an RDesignLock, acquiring the necessary locks for reading a design model.

Protected Attributes

WLock m_design_read_lock
 Write lock held on the specific design model for read access.
RLock m_lookup_read_lock
 Read lock held on the DesignObjectLookup.

Detailed Description

Used to lock a particular model for editing (DEPRECIATED).


Acquires a read lock on the DesignObjectLookup and a write lock on the specific design model identified by UUID. This allows safe concurrent read access to the lookup while exclusively locking a single model for reading operations.

Definition at line 46 of file DesignLock.h.

Constructor & Destructor Documentation

◆ RDesignLock()

RDesignLock::RDesignLock ( DesignObjectLookup * lookup,
const UUID & model )

Constructs an RDesignLock, acquiring the necessary locks for reading a design model.

Parameters
[in]lookupThe DesignObjectLookup that owns the model.
[in]modelThe UUID of the model to lock for reading.

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