mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-09 11:51:58 -04:00
kern: implement KHandleTable, other cleanup
This commit is contained in:
parent
d5a4c17ee7
commit
484f132651
41 changed files with 710 additions and 89 deletions
|
@ -18,36 +18,53 @@
|
|||
namespace ams::kern {
|
||||
|
||||
void NotifyAvailable() {
|
||||
MESOSPHERE_ASSERT_THIS();
|
||||
|
||||
/* TODO: Implement this. */
|
||||
MESOSPHERE_ABORT();
|
||||
}
|
||||
|
||||
void NotifyAbort(Result abort_reason) {
|
||||
MESOSPHERE_ASSERT_THIS();
|
||||
|
||||
/* TODO: Implement this. */
|
||||
MESOSPHERE_ABORT();
|
||||
}
|
||||
|
||||
void KSynchronizationObject::Finalize() {
|
||||
MESOSPHERE_ASSERT_THIS();
|
||||
|
||||
this->OnFinalizeSynchronizationObject();
|
||||
KAutoObject::Finalize();
|
||||
}
|
||||
|
||||
void KSynchronizationObject::DebugWaiters() {
|
||||
MESOSPHERE_ASSERT_THIS();
|
||||
|
||||
/* TODO: Do useful debug operation here. */
|
||||
}
|
||||
|
||||
KSynchronizationObject::iterator KSynchronizationObject::AddWaiterThread(KThread *thread) {
|
||||
MESOSPHERE_ASSERT_THIS();
|
||||
|
||||
return this->thread_list.insert(this->thread_list.end(), *thread);
|
||||
}
|
||||
|
||||
KSynchronizationObject::iterator KSynchronizationObject::RemoveWaiterThread(KSynchronizationObject::iterator it) {
|
||||
MESOSPHERE_ASSERT_THIS();
|
||||
|
||||
return this->thread_list.erase(it);
|
||||
}
|
||||
|
||||
KSynchronizationObject::iterator KSynchronizationObject::begin() {
|
||||
MESOSPHERE_ASSERT_THIS();
|
||||
|
||||
return this->thread_list.begin();
|
||||
}
|
||||
|
||||
KSynchronizationObject::iterator KSynchronizationObject::end() {
|
||||
MESOSPHERE_ASSERT_THIS();
|
||||
|
||||
return this->thread_list.end();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue