- Feb 20, 2015
-
-
archshift authored
-
- Feb 11, 2015
-
-
archshift authored
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.
-
- Feb 10, 2015
-
-
Kevin Hartman authored
* Simplifies scheduling logic, specifically regarding thread status. It should be much clearer which statuses are valid for a thread at any given point in the system. * Removes dead code from thread.cpp. * Moves the implementation of resetting a ThreadContext to the corresponding core's implementation. Other changes: * Fixed comments in arm interfaces. * Updated comments in thread.cpp * Removed confusing, useless, functions like MakeReady() and ChangeStatus() from thread.cpp. * Removed stack_size from Thread. In the CTR kernel, the thread's stack would be allocated before thread creation.
-
- Feb 02, 2015
-
-
Yuri Kunde Schlesner authored
They're finally unnecessary, and will stop cluttering the application's handle table.
-
Yuri Kunde Schlesner authored
During normal operation, a thread waiting on an WaitObject and the object hold mutual references to each other for the duration of the wait. If a process is forcefully terminated (The CTR kernel has a SVC to do this, TerminateProcess, though no equivalent exists for threads.) its threads would also be stopped and destroyed, leaving dangling pointers in the WaitObjects. The solution is to simply have the Thread remove itself from WaitObjects when it is stopped. The vector of Threads in WaitObject has also been changed to hold SharedPtrs, just in case. (Better to have a reference cycle than a crash.)
-
Yuri Kunde Schlesner authored
This should speed up compile times a bit, as well as enable more liberal use of forward declarations. (Due to SharedPtr not trying to emit the destructor anymore.)
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
This is to support the removal of GetHandle soon
-
Yuri Kunde Schlesner authored
-
- Feb 01, 2015
-
-
Lioncash authored
Remove unnecessary/unused struct variables.
-
- Jan 22, 2015
-
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
bunnei authored
- ReleaseNextThread->WakeupNextThread - ReleaseAllWaitingThreads->WakeupAllWaitingThreads.
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
bunnei authored
-
bunnei authored
- Separate wait checking from waiting the current thread - Resume thread when wait_all=true only if all objects are available at once - Set output to correct wait object index when there are duplicate handles
-
bunnei authored
-
bunnei authored
-
- Jan 21, 2015
- Jan 11, 2015
-
-
Subv authored
If a thread was woken up by something, cancel the wakeup timeout.
-
- Jan 09, 2015
-
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
- Jan 08, 2015
-
-
Subv authored
It will now properly wait the specified number of nanoseconds and then wake up the thread.
-
Subv authored
This thread will not actually execute instructions, it will only advance the timing/events and try to yield immediately to the next ready thread, if there aren't any ready threads then it will be rescheduled and start its job again.
-
- Jan 07, 2015
-
-
Yuri Kunde Schlesner authored
Replace all the C-style complicated buffer management with a std::deque. In addition to making the code easier to understand it also adds support for non-POD IdTypes. Also clean the rest of the code to follow our code style.
-
- Dec 28, 2014
-
-
Yuri Kunde Schlesner authored
This handle manager more closely mirrors the behaviour of the CTR-OS one. In addition object ref-counts and support for DuplicateHandle have been added. Note that support for DuplicateHandle is still experimental, since parts of the kernel still use Handles internally, which will likely cause troubles if two different handles to the same object are used to e.g. wait on a synchronization primitive.
-
Yuri Kunde Schlesner authored
-
Yuri Kunde Schlesner authored
-
- Dec 21, 2014
-
-
purpasmart96 authored
-
bunnei authored
- Removed unused VBLANK sleep mode - Added error log for bad context switch - Renamed VerifyWait to CheckWaitType to be more clear
-