Rename: LockSpec=>LockSet
This commit is contained in:
+5
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user