PatchworkOS  da8a090
A non-POSIX operating system.
Loading...
Searching...
No Matches
sched_client_t Struct Reference

Per-thread scheduler context. More...

#include <sched.h>

Collaboration diagram for sched_client_t:

Data Fields

rbnode_t node
 The node in the scheduler's runqueue.
 
int64_t weight
 The weight of the thread.
 
vclock_t vdeadline
 
vclock_t veligible
 The virtual time at which the thread becomes eligible to run (lag >= 0).
 
vclock_t vminEligible
 The minimum virtual eligible time of the subtree in the runqueue.
 
clock_t stop
 The real time when the thread previously stopped executing.
 
cpu_tlastCpu
 The last CPU the thread was scheduled on, it stoped running at stop time.
 

Detailed Description

Per-thread scheduler context.

Stored in a thread's sched member.

Definition at line 369 of file sched.h.

Field Documentation

◆ node

rbnode_t sched_client_t::node

The node in the scheduler's runqueue.

Definition at line 371 of file sched.h.

◆ weight

int64_t sched_client_t::weight

The weight of the thread.

Definition at line 372 of file sched.h.

◆ vdeadline

vclock_t sched_client_t::vdeadline

The earliest virtual time at which the thread ought to have received its due share of CPU time.

Definition at line 376 of file sched.h.

◆ veligible

vclock_t sched_client_t::veligible

The virtual time at which the thread becomes eligible to run (lag >= 0).

Definition at line 377 of file sched.h.

◆ vminEligible

vclock_t sched_client_t::vminEligible

The minimum virtual eligible time of the subtree in the runqueue.

Definition at line 378 of file sched.h.

◆ stop

clock_t sched_client_t::stop

The real time when the thread previously stopped executing.

Definition at line 379 of file sched.h.

◆ lastCpu

cpu_t* sched_client_t::lastCpu

The last CPU the thread was scheduled on, it stoped running at stop time.

Definition at line 380 of file sched.h.


The documentation for this struct was generated from the following file: