]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: threads/lua: Ensure that the launched tasks runs on the same threads than me
authorThierry FOURNIER <thierry.fournier@ozon.io>
Wed, 12 Jul 2017 09:53:38 +0000 (11:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:32 +0000 (13:58 +0100)
commit4325ab727ca4ba07a68d37bd35c464d46b7f8cdb
tree70d643251e61a4940181bdbe7a76c90a795889d9
parent61ba0e2b6d073126a857f71e01068ef319f8dfb4
MEDIUM: threads/lua: Ensure that the launched tasks runs on the same threads than me

The applet manipulates the session and its buffers. We have two methods for
ensuring that the memory of the session will not change during its manipulation
by the task:
 1 - adding mutex
 2 - running on the same threads than the task.
The second point is smart because it cannot lock the execution of another thread.
src/hlua.c