NDEVR
API Documentation
WDesignLock

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

Collaboration diagram for WDesignLock:
[legend]

Public Member Functions

 WDesignLock (DesignObjectLookup *lookup, const UUID &model)
 Constructs a WDesignLock, acquiring the necessary locks for writing to a design model.

Protected Attributes

WLock m_design_write_lock
 Write lock held on the specific design model for write 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 write operations.

Definition at line 67 of file DesignLock.h.

Constructor & Destructor Documentation

◆ WDesignLock()

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

Constructs a WDesignLock, acquiring the necessary locks for writing to a design model.

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

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