struct AcquirePackageWriteLockOptions

Options that control how are package write locks acquired.

Public

Constructors

AcquirePackageWriteLockOptions

AcquirePackageWriteLockOptions(bool allowCreateNew = false, bool blockUntilAcquired = true, const char *lockReason = nullptr)

Fields

AllowCreateNew

bool AllowCreateNew

If true, write operation can be acquired for a non-existing package (e.g. for when saving a brand new package).

BlockUntilAcquired

bool BlockUntilAcquired

Block the calling thread until the lock can be acquired.

If false, locking will fail if some else is holding a read or write lock.

VirtualPathPrefix

Path VirtualPathPrefix

LockReason

const char * LockReason

Reason for acquiring the lock, for debugging only.