]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: hlua_fcn: add Queue class
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 3 May 2023 15:03:09 +0000 (17:03 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 May 2023 14:28:32 +0000 (16:28 +0200)
commit86fb22c5572a709500cafe6876d251f0744d0184
tree7c48f24adce794e4152fa7f5c6123cd56770e966
parentfc4ec0d653f03c8bfcb34795b4f952df39489f68
MINOR: hlua_fcn: add Queue class

Adding a new lua class: Queue.

This class provides a generic FIFO storage mechanism that may be shared
between multiple lua contexts to easily pass data between them, as stock
Lua doesn't provide easy methods for passing data between multiple
coroutines.

New Queue object may be obtained using core.queue()
(it works like core.concat() for a concat Class)

Lua documentation was updated (including some usage examples)
doc/lua-api/index.rst
src/hlua_fcn.c