quakeforge/libs/ruamoko
Bill Currie 973ae0ad54 [gamecode] Add PR_Shutdown for tearing down a VM
This is meant for a "permanent" tear-down before freeing the memory
holding the VM state or at program shutdown. As a consequence, builtin
sub-systems registering resources are now required to pass a "destroy"
function pointer that will be called just before the memory holding
those resources is freed by the VM resource manager (ie, the manager
owns the resource memory block, but each subsystem is responsible for
cleaning up any resources held within that block).

This even enhances thread-safety in rua_obj (there are some problems
with cmd, cvar, and gib).
2022-05-12 19:58:18 +09:00
..
Makemodule.am [ruamoko] Add builtins for handling models 2022-05-04 14:44:54 +09:00
pr_cmds.c [gamecode] Clean up progs data access 2022-04-29 16:59:15 +09:00
rua_cbuf.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_cmd.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_cvar.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_game_init.c [ruamoko] Add builtins for handling models 2022-05-04 14:44:54 +09:00
rua_hash.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_init.c [ruamoko] Actually hook up the stdlib builtins 2021-06-01 23:44:51 +09:00
rua_input.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_keys.c [gamecode] Pass registered data pointer to builtins 2022-02-14 12:28:38 +09:00
rua_math.c [gamecode] Pass registered data pointer to builtins 2022-02-14 12:28:38 +09:00
rua_mersenne.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_model.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_msgbuf.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_obj.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_plist.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_qfile.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_qfs.c [gamecode] Pass registered data pointer to builtins 2022-02-14 12:28:38 +09:00
rua_runtime.c [gamecode] Pass registered data pointer to builtins 2022-02-14 12:28:38 +09:00
rua_scene.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_script.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_set.c [gamecode] Add PR_Shutdown for tearing down a VM 2022-05-12 19:58:18 +09:00
rua_stdlib.c [gamecode] Pass registered data pointer to builtins 2022-02-14 12:28:38 +09:00
rua_string.c [gamecode] Pass registered data pointer to builtins 2022-02-14 12:28:38 +09:00