mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-13 00:26:35 +00:00
94ec9ae41b
This was needed to make stratosphere buildable with debugging on. os:: assertions rely on GetCurrentThread() working, and this requires the global os resource manager to be constructed. However, __appInit executes before global constructors. We now require that hos::InitializeForStratosphere() be called before anything else is done. This initializes the os resource manager, sets the hos version for libnx, and may do more things in the future. TODO: Consider replacing __appInit/__appExit with ams:: namespace functions in general, and wrap them so that we guarantee hos::InitializeForStratosphere is called first, and generally ensure a consistent stratosphere environment. |
||
---|---|---|
.. | ||
impl | ||
os_condition_variable.cpp | ||
os_event.cpp | ||
os_interrupt_event.cpp | ||
os_memory_heap.cpp | ||
os_memory_permission.cpp | ||
os_message_queue.cpp | ||
os_mutex.cpp | ||
os_process_handle.cpp | ||
os_random.cpp | ||
os_sdk_mutex.cpp | ||
os_semaphore.cpp | ||
os_stratosphere_api.cpp | ||
os_system_event.cpp | ||
os_thread.cpp | ||
os_thread_local_storage_api.cpp | ||
os_tick.cpp | ||
os_virtual_address_memory.cpp | ||
os_waitable.cpp |