diff --git a/core/thread/thread.odin b/core/thread/thread.odin index d4a27de13..c0174636a 100644 --- a/core/thread/thread.odin +++ b/core/thread/thread.odin @@ -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. */ diff --git a/core/thread/thread_other.odin b/core/thread/thread_other.odin index 83ea31fe1..1bdc11a4e 100644 --- a/core/thread/thread_other.odin +++ b/core/thread/thread_other.odin @@ -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") }