MINOR: hlua: simplify lua locking

The check on lua state==0 to know whether locking is required or not can
be performed in a locking wrapper to simplify things a bit and prevent
implementation errors.

Locking from hlua context should now be performed via hlua_lock(L) and
unlocking via hlua_unlock(L)

(cherry picked from commit e36f803b71126507fcb6d5d69d507ceebea652c0)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 483e3529144a627202843e0ce8821074f3a2ca77)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit b38b0677e63893d2d7d003689f26e4340f28c8be)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit c144a34204b89f3c3cc9e07dab80d8f5d6c29af7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed