Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

thread_basic_info

Public Struct
std.c.darwin.thread_basic_info
pub const thread_basic_info = extern struct

Fields

user_time: time_value_t

user run time

system_time: time_value_t

system run time

cpu_usage: integer_t

scaled cpu usage percentage

policy: policy_t

scheduling policy in effect

run_state: integer_t

run state

flags: integer_t

various flags

suspend_count: integer_t

suspend count for thread

sleep_time: integer_t

number of seconds that thread has been sleeping

File

c/darwin.zig:738
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
pub const thread_basic_info = extern struct {
    // user run time
    user_time: time_value_t,
    // system run time
    system_time: time_value_t,
    // scaled cpu usage percentage
    cpu_usage: integer_t,
    // scheduling policy in effect
    policy: policy_t,
    // run state
    run_state: integer_t,
    // various flags
    flags: integer_t,
    // suspend count for thread
    suspend_count: integer_t,
    // number of seconds that thread has been sleeping
    sleep_time: integer_t,
}