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
fab3dd98
There was an error fetching the commit references. Please try again later.
Commit
fab3dd98
authored
6 years ago
by
Subv
Browse files
Options
Downloads
Patches
Plain Diff
SVC: Removed unused WaitSynchronization1 function
parent
1b5c02fc
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/svc.cpp
+0
-30
0 additions, 30 deletions
src/core/hle/kernel/svc.cpp
with
0 additions
and
30 deletions
src/core/hle/kernel/svc.cpp
+
0
−
30
View file @
fab3dd98
...
@@ -145,36 +145,6 @@ static bool DefaultThreadWakeupCallback(ThreadWakeupReason reason, SharedPtr<Thr
...
@@ -145,36 +145,6 @@ static bool DefaultThreadWakeupCallback(ThreadWakeupReason reason, SharedPtr<Thr
return
true
;
return
true
;
};
};
/// Wait for a kernel object to synchronize, timeout after the specified nanoseconds
static
ResultCode
WaitSynchronization1
(
SharedPtr
<
WaitObject
>
object
,
Thread
*
thread
,
s64
nano_seconds
=
-
1
,
std
::
function
<
Thread
::
WakeupCallback
>
wakeup_callback
=
DefaultThreadWakeupCallback
)
{
if
(
!
object
)
{
return
ERR_INVALID_HANDLE
;
}
if
(
object
->
ShouldWait
(
thread
))
{
if
(
nano_seconds
==
0
)
{
return
RESULT_TIMEOUT
;
}
thread
->
wait_objects
=
{
object
};
object
->
AddWaitingThread
(
thread
);
thread
->
status
=
THREADSTATUS_WAIT_SYNCH_ANY
;
// Create an event to wake the thread up after the specified nanosecond delay has passed
thread
->
WakeAfterDelay
(
nano_seconds
);
thread
->
wakeup_callback
=
wakeup_callback
;
Core
::
System
::
GetInstance
().
PrepareReschedule
();
}
else
{
object
->
Acquire
(
thread
);
}
return
RESULT_SUCCESS
;
}
/// Wait for the given handles to synchronize, timeout after the specified nanoseconds
/// Wait for the given handles to synchronize, timeout after the specified nanoseconds
static
ResultCode
WaitSynchronization
(
Handle
*
index
,
VAddr
handles_address
,
u64
handle_count
,
static
ResultCode
WaitSynchronization
(
Handle
*
index
,
VAddr
handles_address
,
u64
handle_count
,
s64
nano_seconds
)
{
s64
nano_seconds
)
{
...
...
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