commit | 4325ab727ca4ba07a68d37bd35c464d46b7f8cdb | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <thierry.fournier@ozon.io> | Wed Jul 12 11:53:38 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:32 2017 +0100 |
tree | 70d643251e61a4940181bdbe7a76c90a795889d9 | |
parent | 61ba0e2b6d073126a857f71e01068ef319f8dfb4 [diff] |
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.