1. 22 Nov, 2018 5 commits
    • Lioncash's avatar
      common/thread: Make Barrier's 'count' member non-const · 93f76774
      Lioncash authored
      While admirable as a means to ensure immutability, this has the
      unfortunate downside of making the class non-movable. std::move cannot
      actually perform a move operation if the provided operand has const data
      members (std::move acts as an operation to "slide" resources out of an
      object instance). Given Barrier contains move-only types such as
      std::mutex, this can lead to confusing error messages if an object ever
      contained a Barrier instance and said object was attempted to be moved.
      93f76774
    • Lioncash's avatar
      common/thread: Initialize class member variables where applicable · 756e7730
      Lioncash authored
      Simplifies the constructor interfaces for Barrier and Event classes.
      756e7730
    • Lioncash's avatar
      common/thread: Group non-member functions together · 02602afd
      Lioncash authored
      Keeps the non-member interface in one spot instead of split into two
      places, making it nicer to locate functions.
      02602afd
    • Lioncash's avatar
      common/thread: Remove SleepCurrentThread() · d6583d68
      Lioncash authored
      This is also unused and superceded by standard functionality. The
      standard library provides std::this_thread::sleep_for(), which provides
      a much more flexible interface, as different time units can be used with
      it.
      d6583d68
    • Lioncash's avatar
      common/thread: Remove unused CurrentThreadId() · 1d555fdd
      Lioncash authored
      This is an old function that's no longer necessary. C++11 introduced
      proper threading support to the language and a thread ID can be
      retrieved via std::this_thread::get_id() if it's ever needed.
      1d555fdd
  2. 21 Nov, 2018 23 commits
  3. 20 Nov, 2018 10 commits
  4. 19 Nov, 2018 2 commits
    • Lioncash's avatar
      kernel/resource_limit: Clean up interface · 5d46038c
      Lioncash authored
      Cleans out the citra/3DS-specific implementation details that don't
      apply to the Switch. Sets the stage for implementing ResourceLimit
      instances properly.
      
      While we're at it, remove the erroneous checks within CreateThread() and
      SetThreadPriority(). While these are indeed checked in some capacity,
      they are not checked via a ResourceLimit instance.
      
      In the process of moving out Citra-specifics, this also replaces the
      system ResourceLimit instance's values with ones from the Switch.
      5d46038c
    • Lioncash's avatar
      lm: Implement SetDestination by doing nothing · 34e4aadd
      Lioncash authored
      This service function was likely intended to be a way to redirect where
      the output of a log went. e.g. Firing a log over a network, dumping over
      a tunneling session, etc.
      
      Given we always want to see the log and not change its output. It's one
      of the lucky service functions where the easiest implementation is to
      just do nothing at all and return success.
      34e4aadd