changeset 355:e4e9cca89c64 David-Wikler/clarified-mutual-exclusion-of-callback-1585511553371

clarified mutual exclusion of Lua scripts callbacks.
author David Wikler <david.wikler@ulb.ac.be>
date Sun, 29 Mar 2020 19:54:02 +0000
parents 1ba75bac55fd
children 12ecdb63a8cb 56b2469c4557
files Sphinx/source/users/lua.rst
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/users/lua.rst	Sat Mar 28 14:48:39 2020 +0100
+++ b/Sphinx/source/users/lua.rst	Sun Mar 29 19:54:02 2020 +0000
@@ -27,7 +27,8 @@
 
 To install it by the **configuration file** method, you just have to
 specify the path to the file containing the Lua script in the
-``LuaScripts`` variable.
+``LuaScripts`` variable. A comma seprated list of paths can be specified
+to install multiple scripts.
 
 To upload a script stored in the file "``script.lua``" through the
 **REST API**, use the following command::
@@ -48,7 +49,6 @@
 <http://stackoverflow.com/questions/3872427/how-to-send-line-break-with-curl>`__ of the possible
 comments inside the Lua script.
 
-
 Lua API
 -------
 
@@ -58,7 +58,7 @@
 Callbacks to react to events
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
-The Lua engine of Orthanc comes invokes the following callbacks that
+The Lua engine of Orthanc invokes the following callbacks that
 are triggered on various events. Here are the **generic events**:
 
 * ``function Initialize()``: Invoked as soon as the Orthanc server is started.
@@ -141,7 +141,9 @@
 
 *Note:* All of these callbacks are guaranteed to be **invoked in
 mutual exclusion**. This implies that Lua scripting in Orthanc does
-not support any kind of concurrency.
+not support any kind of concurrency. If a callback is specified 
+multiple times in separate scripts, the event handler of the latest
+loaded script is used.
 
 
 .. _lua-rest: