Closed pdesaulniers closed 3 years ago
This line of code:
https://github.com/wolf-plugins/wolf-shaper/blob/b5c8c457abbe2212ce20644895be4243a2ba5740/plugins/wolf-shaper/WolfShaperPlugin.cpp#L312
is followed by:
https://github.com/wolf-plugins/wolf-shaper/blob/b5c8c457abbe2212ce20644895be4243a2ba5740/plugins/wolf-shaper/WolfShaperPlugin.cpp#L403
I assume we should call unlock() only when tryLock() returns true.
unlock()
tryLock()
true
This line of code:
https://github.com/wolf-plugins/wolf-shaper/blob/b5c8c457abbe2212ce20644895be4243a2ba5740/plugins/wolf-shaper/WolfShaperPlugin.cpp#L312
is followed by:
https://github.com/wolf-plugins/wolf-shaper/blob/b5c8c457abbe2212ce20644895be4243a2ba5740/plugins/wolf-shaper/WolfShaperPlugin.cpp#L403
I assume we should call
unlock()
only whentryLock()
returnstrue
.