| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2018-04-20 | Kernel: Remove old and unused Mutex code. | Subv | |
| 2018-04-20 | Kernel: Corrected the implementation of svcArbitrateLock and svcArbitrateUnlock. | Subv | |
| Switch mutexes are no longer kernel objects, they are managed in userland and only use the kernel to handle the contention case. Mutex addresses store a special flag value (0x40000000) to notify the guest code that there are still some threads waiting for the mutex to be released. This flag is updated when a thread calls ArbitrateUnlock. TODO: * Fix svcWaitProcessWideKey * Fix svcSignalProcessWideKey * Remove the Mutex class. | |||
| 2018-02-05 | mutex: Update hasWaiters on release. | bunnei | |
| 2018-01-08 | mutex: Remove unused call to VerifyGuestState. | bunnei | |
| 2018-01-08 | Kernel: Properly keep track of mutex lock data in the guest memory. This ↵ | Subv | |
| fixes userland locking/unlocking. | |||
| 2018-01-01 | svc: Implement svcLockMutex. | bunnei | |
| 2017-10-09 | Merge remote-tracking branch 'upstream/master' into nx | bunnei | |
| # Conflicts: # src/core/CMakeLists.txt # src/core/arm/dynarmic/arm_dynarmic.cpp # src/core/arm/dyncom/arm_dyncom.cpp # src/core/hle/kernel/process.cpp # src/core/hle/kernel/thread.cpp # src/core/hle/kernel/thread.h # src/core/hle/kernel/vm_manager.cpp # src/core/loader/3dsx.cpp # src/core/loader/elf.cpp # src/core/loader/ncch.cpp # src/core/memory.cpp # src/core/memory.h # src/core/memory_setup.h | |||
| 2017-09-30 | Fixed type conversion ambiguity | Huw Pascoe | |
| 2017-01-04 | Kernel/Mutex: Propagate thread priority changes to other threads inheriting ↵ | Subv | |
| the priority via mutexes | |||
| 2017-01-04 | Kernel/Mutex: Update a mutex priority when a thread stops waiting on it. | Subv | |
| 2017-01-04 | Kernel/Mutex: Implemented priority inheritance. | Subv | |
| The implementation is based on reverse engineering of the 3DS's kernel. A mutex holder's priority will be temporarily boosted to the best priority among any threads that want to acquire any of its held mutexes. When the holder releases the mutex, it's priority will be boosted to the best priority among the threads that want to acquire any of its remaining held mutexes. | |||
| 2017-01-04 | Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter. | Subv | |
| This will be useful when implementing mutex priority inheritance. | |||
| 2017-01-04 | Kernel/Synch: Do not attempt a reschedule on every syscall. | Subv | |
| Not all syscalls should cause reschedules, this commit attempts to remedy that, however, it still does not cover all cases. | |||
| 2016-09-21 | Use negative priorities to avoid special-casing the self-include | Yuri Kunde Schlesner | |
| 2016-09-21 | Remove empty newlines in #include blocks. | Emmanuel Gil Peyrot | |
| This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation. | |||
| 2016-09-18 | Manually tweak source formatting and then re-run clang-format | Yuri Kunde Schlesner | |
| 2016-09-18 | Sources: Run clang-format on everything. | Emmanuel Gil Peyrot | |
| 2015-06-16 | kernel: Fix svcWaitSynch to always acquire requested wait objects. | bunnei | |
| 2015-05-20 | Kernel: Move reschedules from SVCs to actual mechanisms that reschedule. | bunnei | |
| 2015-05-07 | Common: Remove common.h | Yuri Kunde Schlesner | |
| 2015-04-09 | Kernel: Implemented priority inheritance for mutexes. | bunnei | |
| 2015-02-10 | Asserts: break/crash program, fit to style guide; log.h->assert.h | archshift | |
| 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. | |||
| 2015-02-09 | Mutex: Locks should be recursive. | bunnei | |
| 2015-02-02 | Kernel: Stop creating useless Handles during object creation | Yuri Kunde Schlesner | |
| They're finally unnecessary, and will stop cluttering the application's handle table. | |||
| 2015-02-02 | Kernel: Make WaitObjects share ownership of Threads waiting on them | Yuri Kunde Schlesner | |
| 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.) | |||
| 2015-02-02 | Explicitly instantiate constructors/destructors for Kernel objects | Yuri Kunde Schlesner | |
| 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.) | |||
| 2015-02-02 | Mutex: Replace g_mutex_held_locks with a set inside Thread | Yuri Kunde Schlesner | |
| 2015-01-30 | Kernel: Convert Mutex to not use Handles | Yuri Kunde Schlesner | |
| 2015-01-30 | Kernel: Remove useless/duplicated comments; mark functions static | Yuri Kunde Schlesner | |
| 2015-01-21 | Mutex: Cleanup and remove redundant code. | bunnei | |
| 2015-01-21 | Kernel: Renamed some functions for clarity. | bunnei | |
| - ReleaseNextThread->WakeupNextThread - ReleaseAllWaitingThreads->WakeupAllWaitingThreads. | |||
| 2015-01-21 | Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void. | bunnei | |
| 2015-01-21 | WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" ↵ | bunnei | |
| pure virtual. | |||
| 2015-01-21 | Mutex: Fix a bug where the thread should not wait if it already has the mutex. | bunnei | |
| 2015-01-21 | Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks. | bunnei | |
| 2015-01-21 | WaitSynchronizationN: Refactor to fix several bugs | bunnei | |
| - 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 | |||
| 2015-01-21 | Kernel: Separate WaitSynchronization into Wait and Acquire methods. | bunnei | |
| 2015-01-21 | WaitSynchronizationN: Implement return values | bunnei | |
| 2015-01-21 | Kernel: Added WaitObject and changed "waitable" objects inherit from it. | bunnei | |
| 2015-01-09 | Kernel: Start using boost::intrusive_ptr for lifetime management | Yuri Kunde Schlesner | |
| 2015-01-09 | Thread: Reduce use of Handles and move some funcs to inside the class. | Yuri Kunde Schlesner | |
| 2015-01-04 | Mutex: Add the calling thread to the waiting list when needed | Subv | |
| This will happen when the mutex is already owned by another thread. Should fix some issues with games being stuck due to waiting threads not being awoken. | |||
| 2014-12-28 | Kernel: New handle manager | Yuri Kunde Schlesner | |
| 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. | |||
| 2014-12-28 | Kernel: Replace GetStaticHandleType by HANDLE_TYPE constants | Yuri Kunde Schlesner | |
| 2014-12-28 | Rename ObjectPool to HandleTable | Yuri Kunde Schlesner | |
| 2014-12-20 | License change | purpasmart96 | |
| 2014-12-07 | Mutex: Remove some forward declarations | Subv | |
| Moved Mutex::WaitSynchronization to the end of the file. | |||
| 2014-12-07 | Mutex: Release all held mutexes when a thread exits. | Subv | |
| 2014-12-05 | Mutex: Properly lock the mutex when a thread enters it | Subv | |
| Also resume only the next immediate thread waiting for the mutex when it is released, instead of resuming them all. | |||
| 2014-11-26 | Mutex: Changed behavior to always release mutex for all threads. | bunnei | |
