aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hle/kernel/thread.cpp
Commit message (Collapse)AuthorAge
...
| * Thread: Prevent waking a thread multiple times.Gravatar Subv2015-01-11
| | | | | | | | If a thread was woken up by something, cancel the wakeup timeout.
* | Kernel: Start using boost::intrusive_ptr for lifetime managementGravatar Yuri Kunde Schlesner2015-01-09
|/
* Thread: Fix nullptr access in a logging functionGravatar Yuri Kunde Schlesner2015-01-09
|
* Thread: Rename thread_queue => thread_listGravatar Yuri Kunde Schlesner2015-01-09
|
* Thread: Reduce use of Handles and move some funcs to inside the class.Gravatar Yuri Kunde Schlesner2015-01-09
|
* Kernel: Move Thread's definition to the header fileGravatar Yuri Kunde Schlesner2015-01-09
|
* Move ThreadContext to core/core.h and deal with the falloutGravatar Yuri Kunde Schlesner2015-01-09
|
* SVC: Fixed SleepThread.Gravatar Subv2015-01-08
| | | | It will now properly wait the specified number of nanoseconds and then wake up the thread.
* Threads: Use a dummy idle thread when no other are ready.Gravatar Subv2015-01-07
| | | | 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.
* Common: Clean up ThreadQueueListGravatar Yuri Kunde Schlesner2015-01-07
| | | | | | | | 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.
* Kernel: New handle managerGravatar Yuri Kunde Schlesner2014-12-28
| | | | | | | | | | | 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 constantsGravatar Yuri Kunde Schlesner2014-12-28
|
* Rename ObjectPool to HandleTableGravatar Yuri Kunde Schlesner2014-12-28
|
* Merge pull request #291 from purpasmart96/licenseGravatar bunnei2014-12-21
|\ | | | | License change
| * License changeGravatar purpasmart962014-12-20
| |
* | Thread: Wait current thread on svc_SleepThreadGravatar bunnei2014-12-20
| | | | | | | | | | | | - Removed unused VBLANK sleep mode - Added error log for bad context switch - Renamed VerifyWait to CheckWaitType to be more clear
* | Kernel: Implement support for current thread pseudo-handleGravatar Yuri Kunde Schlesner2014-12-20
|/ | | | This boots a few (mostly Nintendo 1st party) games further.
* Convert old logging calls to new logging macrosGravatar Yuri Kunde Schlesner2014-12-13
|
* Merge pull request #256 from Subv/mutexGravatar bunnei2014-12-10
|\ | | | | Kernel/Mutex: Properly lock the mutex when a thread enters it
* | Thread: Fixed to wait on address when in arbitration.Gravatar bunnei2014-12-08
| |
| * Mutex: Release all held mutexes when a thread exits.Gravatar Subv2014-12-07
|/
* Threads: Remove a redundant function.Gravatar Subv2014-12-04
| | | | Use the next_thread_id variable directly.
* Threads: Implemented a sequential thread idGravatar Subv2014-12-04
|
* SVC: Implemented GetThreadId.Gravatar Subv2014-12-04
| | | | For now threads are using their Handle value as their Id, it should not really cause any problems because Handle values are unique in Citra, but it should be changed. I left a ToDo there because this is not correct behavior as per hardware.
* Thread: Check that thread is actually in "wait state" when verifying wait.Gravatar bunnei2014-11-26
|
* Use pointers instead of passing handles around in some functions.Gravatar Yuri Kunde Schlesner2014-11-24
|
* Remove duplicated docs/update them for changed parameters.Gravatar Yuri Kunde Schlesner2014-11-24
|
* HLE: Revamp error handling throrough the HLE codeGravatar Yuri Kunde Schlesner2014-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | All service calls in the CTR OS return result codes indicating the success or failure of the call. Previous to this commit, Citra's HLE emulation of services and the kernel universally either ignored errors or returned dummy -1 error codes. This commit makes an initial effort to provide an infrastructure for error reporting and propagation which can be use going forward to make HLE calls accurately return errors as the original system. A few parts of the code have been updated to use the new system where applicable. One part of this effort is the definition of the `ResultCode` type, which provides facilities for constructing and parsing error codes in the structured format used by the CTR. The `ResultVal` type builds on `ResultCode` by providing a container for values returned by function that can report errors. It enforces that correct error checking will be done on function returns by preventing the use of the return value if the function returned an error code. Currently this change is mostly internal since errors are still suppressed on the ARM<->HLE border, as a temporary compatibility hack. As functionality is implemented and tested this hack can be eventually removed.
* Merge pull request #211 from linkmauve/masterGravatar bunnei2014-11-19
|\ | | | | Remove trailing spaces from the entire project
| * Remove trailing spaces in every file but the ones imported from SkyEye, AOSP ↵Gravatar Emmanuel Gil Peyrot2014-11-19
| | | | | | | | or generated
* | Add static to some variablesGravatar Lioncash2014-11-18
|/
* Add `override` keyword through the code.Gravatar Yuri Kunde Schlesner2014-10-26
| | | | This was automated using `clang-modernize`.
* core: Prune redundant includesGravatar archshift2014-09-08
|
* Threading: Fix thread starting to execute first instruction correctly.Gravatar bunnei2014-08-28
|
* Core: Alter the kernel string functions to use std::string instead of const ↵Gravatar Lioncash2014-08-17
| | | | | | char*. Most functions already operate on std::strings. This also removes the need to manually null terminate thread names.
* Thread: Added more descriptive comment to WaitCurrentThread.Gravatar bunnei2014-08-06
|
* Thread: Added functions to resume threads from address arbitration.Gravatar bunnei2014-07-08
| | | | | | Thread: Cleaned up arbitrate address functions. Thread: Cleaned up ArbitrateAllThreads function.
* Thread: Renamed occurrences of "t" to "thread" to improve readability.Gravatar bunnei2014-06-13
|
* Thread: Cleaned up VerifyWait, fixed issue where nullptr msg could ↵Gravatar bunnei2014-06-13
| | | | unnecessarily be logged.
* HLE: Removed usnused EatCycles function.Gravatar bunnei2014-06-13
|
* Thread: Moved position of * in arguments.Gravatar bunnei2014-06-13
|
* Thread: Updated VerifyWait to be more readable (but functionally the same).Gravatar bunnei2014-06-13
|
* HLE: Updated all uses of NULL to nullptr (to be C++11 compliant)Gravatar bunnei2014-06-13
|
* HLE: Updated various handle debug assertions to be more clear.Gravatar bunnei2014-06-13
|
* Kernel: Updated several member functions to be constGravatar bunnei2014-06-13
|
* Thread: Fixed bug with ResetThread where cpu_registers[15] was being ↵Gravatar bunnei2014-06-13
| | | | incorrectly set
* Kernel: Made SyncRequest not pure virtual, with a default implementation of ↵Gravatar bunnei2014-06-13
| | | | error (as this is not required for all kernel objects)
* Kernel: Added real support for thread and event blockingGravatar bunnei2014-06-13
| | | | | | | | | | | | | - SVC: Added ExitThread support - SVC: Added SignalEvent support - Thread: Added WAITTYPE_EVENT for waiting threads for event signals - Thread: Added support for blocking on other threads to finish (e.g. Thread::Join) - Thread: Added debug function for printing current threads ready for execution - Thread: Removed hack/broken thread ready state code from Kernel::Reschedule - Mutex: Moved WaitCurrentThread from SVC to Mutex::WaitSynchronization - Event: Added support for blocking threads on event signalling Kernel: Added missing algorithm #include for use of std::find on non-Windows platforms.
* svc: added GetThreadPriority and SetThreadPriority, added (incomplete) ↵Gravatar bunnei2014-06-01
| | | | DuplicateHandle support
* kernel: changed main thread priority to default, updated Kernel::Reschedule ↵Gravatar bunnei2014-06-01
| | | | to use PrepareReschedule