]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua: simplify lua locking
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 21 Mar 2023 12:22:33 +0000 (13:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 5 Apr 2023 06:58:17 +0000 (08:58 +0200)
commite36f803b71126507fcb6d5d69d507ceebea652c0
tree1987171f3885a528d6780517869fc78dbf160d0e
parentfde199dddc4c795b20bceb3393a248d8c072b082
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)
src/hlua.c