Skip to content
Snippets Groups Projects
  1. Jun 27, 2020
  2. Apr 01, 2020
    • Vitor K's avatar
      common: Port some changes from dolphin (#5127) · bd0c56c6
      Vitor K authored
      
      * IOFile: Make the move constructor and move assignment operator noexcept
      
      Certain parts of the standard library try to determine whether or not a
      transfer operation should either be a copy or a move. The prevalent notion
      of move constructors/assignment operators is that they should not throw,
      they simply move an already existing resource somewhere else.
      
      This is typically done with 'std::move_if_noexcept'. Like the name says,
      if a type's move constructor is noexcept, then the functions retrieves an
      r-value reference (for move semantics), or an l-value (for copy semantics)
      if it is not noexcept.
      
      As IOFile deletes the copy constructor and copy assignment operators,
      using IOFile with certain parts of the standard library can fail in
      unexcepted ways (especially when used with various container
      implementations). This prevents that.
      
      * fix various instances of -1 being assigned to unsigned types
      
      * do not assign in conditional statements
      
      * File/IOFile: Check _tfopen_s properly
      
      * common/file_util.cpp: address review comments
      
      Co-authored-by: default avatarLioncash <mathew1800@gmail.com>
      Co-authored-by: default avatarShawn Hoffman <godisgovernment@gmail.com>
      Co-authored-by: default avatarSepalani <sepalani@hotmail.fr>
      bd0c56c6
  3. Mar 29, 2019
    • Lioncash's avatar
      common/thread: Remove unused functions · 39409543
      Lioncash authored
      Many of these functions are carried over from Dolphin (where they aren't
      used anymore). Given these have no use (and we really shouldn't be
      screwing around with OS-specific thread scheduler handling from the
      emulator, these can be removed.
      
      The function for setting the thread name is left, however, since it can
      have debugging utility usages.
      39409543
  4. Nov 22, 2018
  5. Dec 05, 2016
  6. Oct 27, 2016
  7. Sep 21, 2016
  8. Sep 18, 2016
  9. Jun 27, 2015
  10. Dec 30, 2014
  11. Dec 21, 2014
  12. Nov 29, 2014
  13. Nov 19, 2014
  14. Sep 09, 2014
  15. Sep 07, 2014
  16. Aug 08, 2014
  17. Apr 09, 2014
  18. Apr 08, 2014
  19. Apr 01, 2014
  20. Sep 05, 2013
Loading