mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-01 03:38:55 +00:00
Apply suggestions from code review
Improve code description Co-authored-by: Sunagatov Denis <yyakut.ac@gmail.com>
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user