Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app_python3: implement script reloading
Copy the method used in app_lua: the version of the script is incremented by RPC. In python_exec.c:apy_exec() check for a newer version and reload the script. Set a lock so the script reload only occurs at depth 0 (in the unlikely case that apy_exec() is called recursively). This is not thread-safe as we are using a process-wide lock: don't call back into apy_exec() from a Python extension that uses threads.
- Loading branch information
Showing
5 changed files
with
191 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.