Apply suggestions from code review

Improve code description

Co-authored-by: Sunagatov Denis <yyakut.ac@gmail.com>
This commit is contained in:
WP. Yingamphol
2025-08-20 07:10:19 +07:00
committed by GitHub
parent 2f770ff241
commit c164332661
2 changed files with 5 additions and 3 deletions

View File

@@ -161,7 +161,9 @@ yield :: proc() {
/*
Get thread's name/description.
If thread is nil the procedure will get the name of the calling thread.
This procedure returns the name of the given thread. If `thread` is `nil`, this procedure returns the name of the calling thread.
**Note(linux, bsd)**: Because the thread name is stored in as the `cmdline`, if the thread name was not set, the command that has been used to create the process as the name of the thread.
allocates memory for the returned string using provided allocator.
*/

View File

@@ -47,9 +47,9 @@ _yield :: proc() {
}
_get_name :: proc(thread: ^Thread, allocator : runtime.Allocator, loc : runtime.Source_Code_Location) -> (string, runtime.Allocator_Error) {
unimplemented("core:thread procedure not supported on target")
unimplemented("core:thread procedure not supported on this target")
}
_set_name :: proc(thread: ^Thread, name:string) {
unimplemented("core:thread procedure not supported on target")
unimplemented("core:thread procedure not supported on this target")
}