Tags: openresty/lua-resty-lock
Tags
feature: added new method expire() that can change the TTL of the loc… …k being held. Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
optimize: use branch-free algorithms for variables assignment. * the new step assignment combines both branches, and also ensures we do not go over the value of `timeout`, so we avoid a third branch. * we can avoid checking for step > timeout before the sleep if we take care of it in `new()`. Further checks are done in the new step assignment. Signed-off-by: Yichun Zhang (agentzh) <[email protected]>
PreviousNext