summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/semaphore.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Kernel: Centralize error definitions in errors.hYuri Kunde Schlesner2017-05-251-4/+3
|
* Kernel/Semaphore: Fixed a regression in semaphore waits.Subv2017-01-051-1/+2
| | | | | | The regression was caused by a missing check in #2260. The new behavior is consistent with the real kernel.
* Kernel: Object ShouldWait and Acquire calls now take a thread as a parameter.Subv2017-01-041-3/+3
| | | | This will be useful when implementing mutex priority inheritance.
* Use negative priorities to avoid special-casing the self-includeYuri Kunde Schlesner2016-09-211-1/+1
|
* Remove empty newlines in #include blocks.Emmanuel Gil Peyrot2016-09-211-2/+1
| | | | | | | This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-191-4/+2
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-3/+5
|
* kernel: Fix svcWaitSynch to always acquire requested wait objects.bunnei2015-06-171-7/+1
|
* Remove every trailing whitespace from the project (but externals).Emmanuel Gil Peyrot2015-05-291-1/+1
|
* Kernel: Move reschedules from SVCs to actual mechanisms that reschedule.bunnei2015-05-211-0/+2
|
* Common: Remove common.hYuri Kunde Schlesner2015-05-071-1/+1
|
* Asserts: break/crash program, fit to style guide; log.h->assert.harchshift2015-02-111-1/+1
| | | | | | | 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.
* Kernel: Stop creating useless Handles during object creationYuri Kunde Schlesner2015-02-021-2/+0
| | | | | They're finally unnecessary, and will stop cluttering the application's handle table.
* Explicitly instantiate constructors/destructors for Kernel objectsYuri Kunde Schlesner2015-02-021-0/+3
| | | | | | 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.)
* Kernel: Convert Semaphore to not use HandlesYuri Kunde Schlesner2015-01-301-43/+22
|
* Kernel: Renamed some functions for clarity.bunnei2015-01-221-1/+1
| | | | | - ReleaseNextThread->WakeupNextThread - ReleaseAllWaitingThreads->WakeupAllWaitingThreads.
* Kernel: Changed "ShouldWait" to return bool and "Acquire" to return void.bunnei2015-01-221-21/+7
|
* WaitObject: Renamed "Wait" to "ShouldWait", made "ShouldWait" and "Acquire" pure virtual.bunnei2015-01-221-1/+1
|
* Kernel: Get rid of WaitTypes and simplify lots of code, removing hacks.bunnei2015-01-221-9/+2
|
* WaitSynchronizationN: Refactor to fix several bugsbunnei2015-01-221-3/+3
| | | | | | - 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
* Kernel: Separate WaitSynchronization into Wait and Acquire methods.bunnei2015-01-221-3/+12
|
* WaitSynchronizationN: Implement return valuesbunnei2015-01-221-3/+3
|
* Kernel: Added WaitObject and changed "waitable" objects inherit from it.bunnei2015-01-221-8/+3
|
* Kernel: Start using boost::intrusive_ptr for lifetime managementYuri Kunde Schlesner2015-01-091-2/+2
|
* Thread: Reduce use of Handles and move some funcs to inside the class.Yuri Kunde Schlesner2015-01-091-3/+5
|
* Kernel: New handle managerYuri Kunde Schlesner2014-12-281-1/+2
| | | | | | | | | | | 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.
* Kernel: Replace GetStaticHandleType by HANDLE_TYPE constantsYuri Kunde Schlesner2014-12-281-2/+2
|
* Rename ObjectPool to HandleTableYuri Kunde Schlesner2014-12-281-2/+2
|
* Merge pull request #291 from purpasmart96/licensebunnei2014-12-211-1/+1
|\ | | | | License change
| * License changepurpasmart962014-12-211-1/+1
| |
* | Clean up some warningsChin2014-12-201-4/+4
|/
* Kernel/Semaphore: Small style changeSubv2014-12-131-1/+1
|
* Kernel/Semaphores: Invert the available count checking.Subv2014-12-131-11/+9
| | | | Same semantics, idea by @yuriks
* Kernel/Semaphores: Addressed some issues.Subv2014-12-131-28/+13
|
* Semaphore: Removed an unneeded functionSubv2014-12-131-5/+0
|
* Semaphores: Addressed some style issuesSubv2014-12-131-6/+5
|
* Semaphore: Implemented the initial_count parameter.Subv2014-12-131-3/+5
|
* SVC: Implemented ReleaseSemaphore.Subv2014-12-131-13/+52
| | | | This behavior was tested on hardware, however i'm still not sure what use the "initial_count" parameter has
* SVC: Implemented svcCreateSemaphoreSubv2014-12-131-0/+76
ToDo: Implement svcReleaseSemaphore * Some testing against hardware needed