aboutsummaryrefslogtreecommitdiff
path: root/lua.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-07-09 14:40:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2025-07-09 14:40:36 -0300
commit85a3c1699c9587a9e952b4ab75b1c6c310ebebea (patch)
tree67e17e9e8f74259a56690456e705a4158e5cc33e /lua.c
parentf65d1f9e02d891733d4ff1cf8d4bc91291e0098e (diff)
downloadlua-85a3c1699c9587a9e952b4ab75b1c6c310ebebea.tar.gz
lua-85a3c1699c9587a9e952b4ab75b1c6c310ebebea.tar.bz2
lua-85a3c1699c9587a9e952b4ab75b1c6c310ebebea.zip
New method to unload DLLs
External strings created by DLLs may need the DLL code to be deallocated. This implies that a DLL can only be unloaded after all its strings were deallocated, which happen only after the run of all finalizers. To ensure that order, we create a 'library string' to represent each DLL and keep it locked. When this string is deallocated (after the deallocation of any string created by the DLL) it closes its corresponding DLL.
Diffstat (limited to 'lua.c')
0 files changed, 0 insertions, 0 deletions