Rename: LockSpec=>LockSet

This commit is contained in:
2025-09-18 22:21:06 -04:00
parent eb3366cfd2
commit ec50526804
3 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -10,16 +10,16 @@
namespace smo {
/**
* @brief LockSpec - Manages a collection of locks for acquisition/release
* @brief LockSet - Manages a collection of locks for acquisition/release
*/
class LockSpec
class LockSet
{
public:
/**
* @brief Constructor
* @param requiredLocks Vector of lock references that must be acquired
*/
LockSpec(std::vector<std::reference_wrapper<SpinLock>> requiredLocks = {})
LockSet(std::vector<std::reference_wrapper<SpinLock>> requiredLocks = {})
: requiredLocks(std::move(requiredLocks)), allLocksAcquired(false)
{}
@@ -33,7 +33,7 @@ public:
{
throw std::runtime_error(
std::string(__func__) +
": LockSpec::tryAcquire() called but allLocksAcquired is "
": LockSet::tryAcquire() called but allLocksAcquired is "
"already true");
}
@@ -68,7 +68,7 @@ public:
{
throw std::runtime_error(
std::string(__func__) +
": LockSpec::release() called but allLocksAcquired is false");
": LockSet::release() called but allLocksAcquired is false");
}
for (auto& lockRef : requiredLocks) {