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
811dae12
There was an error fetching the commit references. Please try again later.
Commit
811dae12
authored
6 years ago
by
bunnei
Browse files
Options
Downloads
Patches
Plain Diff
core: Add several missing docstrings.
parent
46ec9a9b
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/core.h
+8
-0
8 additions, 0 deletions
src/core/core.h
with
8 additions
and
0 deletions
src/core/core.h
+
8
−
0
View file @
811dae12
...
@@ -106,26 +106,34 @@ public:
...
@@ -106,26 +106,34 @@ public:
/// Prepare the core emulation for a reschedule
/// Prepare the core emulation for a reschedule
void
PrepareReschedule
();
void
PrepareReschedule
();
/// Gets and resets core performance statistics
PerfStats
::
Results
GetAndResetPerfStats
();
PerfStats
::
Results
GetAndResetPerfStats
();
/// Gets an ARM interface to the CPU core that is currently running
ARM_Interface
&
CurrentArmInterface
()
{
ARM_Interface
&
CurrentArmInterface
()
{
return
CurrentCpuCore
().
ArmInterface
();
return
CurrentCpuCore
().
ArmInterface
();
}
}
/// Gets an ARM interface to the CPU core with the specified index
ARM_Interface
&
ArmInterface
(
size_t
core_index
);
ARM_Interface
&
ArmInterface
(
size_t
core_index
);
/// Gets a CPU interface to the CPU core with the specified index
Cpu
&
CpuCore
(
size_t
core_index
);
Cpu
&
CpuCore
(
size_t
core_index
);
/// Gets the GPU interface
Tegra
::
GPU
&
GPU
()
{
Tegra
::
GPU
&
GPU
()
{
return
*
gpu_core
;
return
*
gpu_core
;
}
}
/// Gets the scheduler for the CPU core that is currently running
Kernel
::
Scheduler
&
CurrentScheduler
()
{
Kernel
::
Scheduler
&
CurrentScheduler
()
{
return
*
CurrentCpuCore
().
Scheduler
();
return
*
CurrentCpuCore
().
Scheduler
();
}
}
/// Gets the scheduler for the CPU core with the specified index
const
std
::
shared_ptr
<
Kernel
::
Scheduler
>&
Scheduler
(
size_t
core_index
);
const
std
::
shared_ptr
<
Kernel
::
Scheduler
>&
Scheduler
(
size_t
core_index
);
/// Gets the current process
Kernel
::
SharedPtr
<
Kernel
::
Process
>&
CurrentProcess
()
{
Kernel
::
SharedPtr
<
Kernel
::
Process
>&
CurrentProcess
()
{
return
current_process
;
return
current_process
;
}
}
...
...
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