mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 19:54:22 -04:00
Stratosphere: Add IWaitable, WaitableManager
This commit is contained in:
parent
8e25534912
commit
cbb0a084a6
8 changed files with 244 additions and 9 deletions
|
@ -2,3 +2,29 @@
|
|||
|
||||
#include "servicesession.hpp"
|
||||
|
||||
/* IWaitable functions. */
|
||||
template <typename T>
|
||||
unsigned int ServiceSession<T>::get_num_waitables() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void ServiceSession<T>::get_waitables(IWaitable **dst) {
|
||||
dst[0] = this;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
void ServiceSession<T>::delete_child(IWaitable *child) {
|
||||
/* TODO: Panic, because we can never have any children. */
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
Handle ServiceSession<T>::get_handle() {
|
||||
return this->server_handle;
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
Result ServiceSession<T>::handle_signaled() {
|
||||
/* TODO */
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue