Closed SergeyLee closed 7 years ago
it seems lock is created when "createRootSBB" is called, so that suggets there is a lock per SBB-tree, being the root SBB the owner of the lock representing the whole tree.
Under that assumption, it only makes sense to remove the lock, when the root SBB is removed. In that case, the code is right, and the comment is wrong.
wdyt?
@jaimecasero so my conclusion: comment is wrong and you were right the root SBB the owner of the lock representing the whole tree. I fixed this comment. Thanks for help.
Here: https://github.com/RestComm/jain-slee/blob/2.x/container/services/src/main/java/org/mobicents/slee/runtime/sbbentity/SbbEntityFactoryImpl.java#L273-L274 I guess comment and code are inconsistent
So here I want to understand what is right: comment or code?