diff options
author | Manojkiran Eda <manojkiran.eda@gmail.com> | 2020-01-20 17:52:36 +0300 |
---|---|---|
committer | ManojKiran Eda <manojkiran.eda@gmail.com> | 2020-05-15 08:16:49 +0300 |
commit | 5bb0ece5da042b38b74e5c156d6204c74828f0aa (patch) | |
tree | e21dd3526622bf1c1dbb5d4e2a0fd7df91a3b775 /include/ibm/locks.hpp | |
parent | 5fd16e4b9c2755f3e3bd6386b79ab307d9ad24a1 (diff) | |
download | bmcweb-5bb0ece5da042b38b74e5c156d6204c74828f0aa.tar.xz |
Implement ReleaseAll Locks functionality
- This commit implements the release all locks functionality
as a part of ReleaseLock API.
- The existing ReleaseLock API is modified in such a way that
based on it can do the following things:
1. Release the locks which are corresponding to a set of
transactionID's(provided as input & `Type:Transaction`)
2. Release all the locks which are corrsponding to a particular
session(where `Type:Session`)
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I89f847bcb85912d4d9f85587ffbf782da885393a
Diffstat (limited to 'include/ibm/locks.hpp')
-rw-r--r-- | include/ibm/locks.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ibm/locks.hpp b/include/ibm/locks.hpp index 7b007082ae..66eb926263 100644 --- a/include/ibm/locks.hpp +++ b/include/ibm/locks.hpp @@ -42,7 +42,7 @@ class Lock boost::container::flat_map<uint32_t, LockRequests> lockTable; /* - * This function implements the logic for validating an incomming + * This function implements the logic for validating an incoming * lock request/requests. * * Returns : True (if Valid) @@ -52,7 +52,7 @@ class Lock bool isValidLockRequest(const LockRequest); /* - * This function implements the logic of checking if the incomming + * This function implements the logic of checking if the incoming * multi-lock request is not having conflicting requirements. * * Returns : True (if conflicting) @@ -74,7 +74,7 @@ class Lock /* * This function implements the logic of checking the conflicting - * locks from a incomming single/multi lock requests with the already + * locks from a incoming single/multi lock requests with the already * existing lock request in the lock table. * */ @@ -135,7 +135,7 @@ class Lock public: /* * This function implements the logic for acquiring a lock on a - * resource if the incomming request is legitimate without any + * resource if the incoming request is legitimate without any * conflicting requirements & without any conflicting requirement * with the exsiting locks in the lock table. * |