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
7f1557fb
There was an error fetching the commit references. Please try again later.
Commit
7f1557fb
authored
10 years ago
by
Yuri Kunde Schlesner
Browse files
Options
Downloads
Patches
Plain Diff
Thread: Rename thread_queue => thread_list
parent
9bf8462b
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/thread.cpp
+6
-6
6 additions, 6 deletions
src/core/hle/kernel/thread.cpp
with
6 additions
and
6 deletions
src/core/hle/kernel/thread.cpp
+
6
−
6
View file @
7f1557fb
...
...
@@ -36,7 +36,7 @@ ResultVal<bool> Thread::WaitSynchronization() {
}
// Lists all thread ids that aren't deleted/etc.
static
std
::
vector
<
Thread
*>
thread_
queue
;
// TODO(yuriks): Owned
static
std
::
vector
<
Thread
*>
thread_
list
;
// TODO(yuriks): Owned
// Lists only ready thread ids.
static
Common
::
ThreadQueueList
<
Thread
*
,
THREADPRIO_LOWEST
+
1
>
thread_ready_queue
;
...
...
@@ -143,7 +143,7 @@ Thread* ArbitrateHighestPriorityThread(Object* arbiter, u32 address) {
s32
priority
=
THREADPRIO_LOWEST
;
// Iterate through threads, find highest priority thread that is waiting to be arbitrated...
for
(
Thread
*
thread
:
thread_
queue
)
{
for
(
Thread
*
thread
:
thread_
list
)
{
if
(
!
CheckWaitType
(
thread
,
WAITTYPE_ARB
,
arbiter
,
address
))
continue
;
...
...
@@ -168,7 +168,7 @@ Thread* ArbitrateHighestPriorityThread(Object* arbiter, u32 address) {
void
ArbitrateAllThreads
(
Object
*
arbiter
,
u32
address
)
{
// Iterate through threads, find highest priority thread that is waiting to be arbitrated...
for
(
Thread
*
thread
:
thread_
queue
)
{
for
(
Thread
*
thread
:
thread_
list
)
{
if
(
CheckWaitType
(
thread
,
WAITTYPE_ARB
,
arbiter
,
address
))
thread
->
ResumeFromWait
();
}
...
...
@@ -278,7 +278,7 @@ static void DebugThreadQueue() {
return
;
}
LOG_DEBUG
(
Kernel
,
"0x%02X 0x%08X (current)"
,
thread
->
current_priority
,
GetCurrentThread
()
->
GetHandle
());
for
(
Thread
*
t
:
thread_
queue
)
{
for
(
Thread
*
t
:
thread_
list
)
{
s32
priority
=
thread_ready_queue
.
contains
(
t
);
if
(
priority
!=
-
1
)
{
LOG_DEBUG
(
Kernel
,
"0x%02X 0x%08X"
,
priority
,
t
->
GetHandle
());
...
...
@@ -324,7 +324,7 @@ ResultVal<Thread*> Thread::Create(const char* name, u32 entry_point, s32 priorit
if
(
handle
.
Failed
())
return
handle
.
Code
();
thread_
queue
.
push_back
(
thread
);
thread_
list
.
push_back
(
thread
);
thread_ready_queue
.
prepare
(
priority
);
thread
->
thread_id
=
next_thread_id
++
;
...
...
@@ -418,7 +418,7 @@ void Reschedule() {
}
else
{
LOG_TRACE
(
Kernel
,
"cannot context switch from 0x%08X, no higher priority thread!"
,
prev
->
GetHandle
());
for
(
Thread
*
thread
:
thread_
queue
)
{
for
(
Thread
*
thread
:
thread_
list
)
{
LOG_TRACE
(
Kernel
,
"
\t
handle=0x%08X prio=0x%02X, status=0x%08X wait_type=0x%08X wait_handle=0x%08X"
,
thread
->
GetHandle
(),
thread
->
current_priority
,
thread
->
status
,
thread
->
wait_type
,
thread
->
wait_object
->
GetHandle
());
}
...
...
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