mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
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. |
||
|---|---|---|
| .. | ||
| P1 | ||
| lib1.c | ||
| lib2.c | ||
| lib11.c | ||
| lib21.c | ||
| lib22.c | ||
| makefile | ||