Commit Graph

14 Commits

Author SHA1 Message Date
Sandy Carter
b5ea686475 [threading] Implement Posix HighResolutionTimer
Implement HighResolutionTimer for Posix by using native timers.
Callbacks are triggered with realtime interrupts if they are supported.
Create an enum to track user-defined interrupts as well as an initializer and
handler to register these interrupts per thread.
Add test cases for timers for both single and multiple.
Fix Sleep function to continue sleeping if interrupted by system.
Add local .gdbinit to ignore signal 34 which is used by high res timer
2020-11-15 11:12:05 -06:00
Sandy Carter
d8d8a7dbb8 [threading linux] Fix nanosleep using microseconds
Add Sleep Test for 50ms.
Fix Sleep under linux that was using microseconds as nanoseconds.
Factor timespec creation to template function using div/mod and nanoseconds
from duration cast.
2020-11-15 11:12:05 -06:00
gibbed
3dc69c6033 [Base] Cleanup set thread name. 2020-04-13 12:57:14 -05:00
gibbed
a48bb71c2f Overhaul logging. 2020-04-07 16:09:41 -05:00
DrChat
a47417117e [Base] Implement PosixEvent using eventfd 2017-12-20 17:51:31 -06:00
DrChat
3bc5d90662 Return dummy values for unimplemented threading functions 2017-12-16 17:02:06 -06:00
scribam
b6e7e66fbe Fix travis LINT 2017-09-20 23:29:39 +02:00
Doug Johnson
b143b91fbb base: threading_linux: Stub out several synchronization constructs 2017-07-11 11:47:25 -06:00
Dr. Chat
af493ffbc7 xenia-base: Use unique_ptr constructor rather than make_unique to support GCC 4.8.4 2017-05-12 10:17:56 -05:00
Dr. Chat
737b78ad49 Last stretch to get PPC native tests working 2017-05-11 15:09:43 -05:00
DrChat
26456280f1 Travis: print error log on command failure 2017-02-11 00:02:15 -06:00
DrChat
d43e2c7ff8 xenia-cpu-ppc-tests is now building on linux 2017-02-10 23:54:10 -06:00
Ben Vanik
8b0d4fb51c Linux tweaks. 2015-08-18 14:18:00 -07:00
Ben Vanik
e3220f7ae6 Code cleanup: moving poly/ into xenia/base/ 2015-05-02 03:42:51 -07:00