[kernel] Add debug names to processes

To make debugging easier, add names to processes. These are arbitrary
and supplied by the caller of process_create. The max is 31 characters
in debug configuration, and 0 in release.
This commit is contained in:
Justin C. Miller
2024-08-12 19:40:20 -07:00
parent ee24ec8d5c
commit d3c1d6cc34
8 changed files with 104 additions and 26 deletions

View File

@@ -12,7 +12,9 @@ object process : object {
]
# Create a new empty process
method create [constructor]
method create [constructor] {
param name string
}
# Stop all threads and exit the given process
method kill [destructor cap:kill]