Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
d58a609a
There was an error fetching the commit references. Please try again later.
Commit
d58a609a
authored
4 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
hle: kernel: process: Add schedule count tracking, to be used for yield impl.
parent
493263f4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/hle/kernel/process.h
+13
-0
13 additions, 0 deletions
src/core/hle/kernel/process.h
with
13 additions
and
0 deletions
src/core/hle/kernel/process.h
+
13
−
0
View file @
d58a609a
...
...
@@ -216,6 +216,16 @@ public:
total_process_running_time_ticks
+=
ticks
;
}
/// Gets the process schedule count, used for thread yelding
constexpr
s64
GetScheduledCount
()
const
{
return
schedule_count
;
}
/// Increments the process schedule count, used for thread yielding.
constexpr
void
IncrementScheduledCount
()
{
++
schedule_count
;
}
/// Gets 8 bytes of random data for svcGetInfo RandomEntropy
u64
GetRandomEntropy
(
std
::
size_t
index
)
const
{
return
random_entropy
.
at
(
index
);
...
...
@@ -397,6 +407,9 @@ private:
/// Name of this process
std
::
string
name
;
/// Schedule count of this process
s64
schedule_count
{};
/// System context
Core
::
System
&
system
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment