rpcsx/rpcs3/Emu/Cell/lv2
Eladash 50f51be06a
Improve sys_timer_get_information (#7638)
* Improve sys_timer_get_information

* sys_timer_disconnect_event_queue sets STATE_STOP regardless of port connection status.
* sys_timer_get_information sets 0 for period and next_expire if the timer is stopped.

* Fix two minor races in lv2_timer thread

* If the timer thread is about to fire an event of queue x, then another thread disconnects the queue, then restarts the timer and connects the event queue, then the timer thread sends an event - event data combination (source, data1, data2, next) may be inaccurate.

* If the timer thread is about to send an event (periodically), then another thread stops the timer and starts it again with sys_timer_start_periodic_absolute, timer.expire in info->timer_state in sys_timer_get_information may be inaccurate.
2020-02-29 17:15:25 +03:00
..
lv2.cpp Stub sys_spu_thread_group_set_cooperative_victims and syscall_253 2020-02-26 18:17:13 +00:00
sys_bdemu.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_bdemu.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_btsetting.cpp VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_btsetting.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_cond.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_cond.h Remove -Wno-reorder and make it an error 2020-02-21 15:20:34 +03:00
sys_config.cpp Apply some Clang-Tidy fixes 2020-02-27 00:38:55 +03:00
sys_config.h Fix lv2_config_service_event event id reset 2019-10-29 18:15:26 +03:00
sys_console.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_console.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_crypto_engine.cpp VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_crypto_engine.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_dbg.cpp Remove unnecessary header includes 2019-06-25 17:11:10 +03:00
sys_dbg.h Split Emu/Memory into more logical headers 2019-06-25 17:11:10 +03:00
sys_event.cpp Fix signed-unsigned comparisons and mark warning as error (part 2). 2020-02-19 22:54:58 +03:00
sys_event.h lv2: Correct alignment of some attributes structs 2019-10-29 18:15:41 +03:00
sys_event_flag.cpp Apply some Clang-Tidy fixes 2020-02-27 00:38:55 +03:00
sys_event_flag.h lv2: Correct alignment of some attributes structs 2019-10-29 18:15:41 +03:00
sys_fs.cpp cellSaveData: Avoid passing vm pointer to native API 2020-02-27 22:31:31 +03:00
sys_fs.h cellSaveData: Avoid passing vm pointer to native API 2020-02-27 22:31:31 +03:00
sys_gamepad.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_gamepad.h Split Emu/Memory into more logical headers 2019-06-25 17:11:10 +03:00
sys_gpio.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_gpio.h sys_gpio Cleanup 2019-10-08 02:52:33 +03:00
sys_hid.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_hid.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_interrupt.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_interrupt.h sys_interrupt: add vm::temporary_unlock 2019-07-14 18:08:18 +03:00
sys_io.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_io.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_lwcond.cpp Fix signed-unsigned comparisons and mark warning as error (part 2). 2020-02-19 22:54:58 +03:00
sys_lwcond.h lv2: Correct alignment of some attributes structs 2019-10-29 18:15:41 +03:00
sys_lwmutex.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_lwmutex.h lv2: Correct alignment of some attributes structs 2019-10-29 18:15:41 +03:00
sys_memory.cpp VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_memory.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_mmapper.cpp Fix signed-unsigned comparisons and mark warning as error (part 2). 2020-02-19 22:54:58 +03:00
sys_mmapper.h VSH: sys_mmapper 2020-01-24 20:08:30 +00:00
sys_mutex.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_mutex.h Remove -Wno-reorder and make it an error 2020-02-21 15:20:34 +03:00
sys_net.cpp Disable cotire on travis 2020-02-21 17:03:54 +03:00
sys_net.h sys_net: fixup for race condition 2019-12-23 22:39:18 +03:00
sys_overlay.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_overlay.h vm/sys_overlay Improvements 2019-07-28 14:23:58 +03:00
sys_ppu_thread.cpp Try to purge thread_state::detached 2020-02-28 21:11:13 +03:00
sys_ppu_thread.h Split Emu/Memory into more logical headers 2019-06-25 17:11:10 +03:00
sys_process.cpp Apply some Clang-Tidy fixes 2020-02-27 00:38:55 +03:00
sys_process.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_prx.cpp Use more starts_with/ends_with. 2020-02-18 14:53:23 +03:00
sys_prx.h vm/sys_overlay Improvements 2019-07-28 14:23:58 +03:00
sys_rsx.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_rsx.h Fix cellGcm HLE regression 2019-10-22 13:45:09 +03:00
sys_rsxaudio.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_rsxaudio.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_rwlock.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_rwlock.h Remove -Wno-reorder and make it an error 2020-02-21 15:20:34 +03:00
sys_semaphore.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_semaphore.h Remove -Wno-reorder and make it an error 2020-02-21 15:20:34 +03:00
sys_sm.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_sm.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_spu.cpp Stub sys_spu_thread_group_set_cooperative_victims and syscall_253 2020-02-26 18:17:13 +00:00
sys_spu.h Stub sys_spu_thread_group_set_cooperative_victims and syscall_253 2020-02-26 18:17:13 +00:00
sys_ss.cpp sys_ss: use BCryptGenRandom on Win32 2020-02-29 12:15:42 +03:00
sys_ss.h Minor improvements to sys_ss_random_number_generator 2020-02-21 14:49:45 +03:00
sys_storage.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_storage.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_sync.h sys_sync.h: fix warning (signed prio) 2020-02-18 14:53:23 +03:00
sys_time.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_time.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_timer.cpp Improve sys_timer_get_information (#7638) 2020-02-29 17:15:25 +03:00
sys_timer.h Threads: removed outdated on_abort detection deemed unnecessary 2020-02-25 15:48:25 +03:00
sys_trace.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_trace.h Add missing #includes to header files 2019-06-25 17:11:10 +03:00
sys_tty.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_tty.h Split Emu/Memory into more logical headers 2019-06-25 17:11:10 +03:00
sys_uart.cpp move config structs to own files and clean up some headers 2020-02-17 15:08:17 +03:00
sys_uart.h VSH: Stubs 2020-02-08 23:07:03 +03:00
sys_usbd.cpp Apply some Clang-Tidy fixes 2020-02-27 00:38:55 +03:00
sys_usbd.h sys_usbd: Add error_code 2020-01-24 19:25:52 +00:00
sys_vm.cpp Remove -Wno-reorder and make it an error 2020-02-21 15:20:34 +03:00
sys_vm.h Fix debug build gcc/clang linker. 2019-10-24 14:34:38 +03:00