Commit Graph

142 Commits

Author SHA1 Message Date
twinaphex 0d699208d3 Update rthreads 2018-10-09 03:55:34 +02:00
twinaphex 521b978d31 Add sthread_create_with_priority - missing functionality from desmume
rthreads implementation
2018-10-09 03:43:34 +02:00
M4xw b8ec926078 [LIBNX] Split non-inline functions from the header, increase stack 2018-10-01 21:12:59 +02:00
M4xw ef736d02c2 [LIBNX] Improve Threading, Fix Video Threaded. Scan content no longer crashes. 2018-09-28 03:24:12 +02:00
M4xw 72ed1c0b82 [LIBNX] Threading; Use a ThreadCoreMask and let the system schedule it. 2018-09-27 00:53:26 +02:00
misson20000 fa76a3cb60 CRLF -> LF 2018-09-15 03:27:05 -07:00
M4xw 3a6e410833 [LIBNX] Add pthreads wrapper 2018-09-15 02:28:52 +02:00
twinaphex 768ebbfdb5 Merge commit 'ce9ce1d35387ef8144e53bf071396fa075bfb6c5' as 'libretro-common' 2018-05-12 17:56:34 +02:00
twinaphex 0548349991 Remove libretro-common 2018-05-12 17:56:14 +02:00
twinaphex be7eb4de1c Update libretro-common 2018-04-16 08:57:17 +02:00
twinaphex b3d3cbd4e1 sthread_isself - make Win32 codepath use GetCurrentThreadId instead 2018-02-28 16:18:48 +01:00
twinaphex 79b434719f Update 2018-01-18 23:23:22 +01:00
Twinaphex 318843a71d
Update ctr_pthread.h 2018-01-18 21:12:07 +01:00
meepingsnesroms da5ce6ef35 Fix writing to local thread pointer instead of actual thread. 2018-01-18 10:35:58 -08:00
meepingsnesroms 5e42401fdb Add 3DS threads 2018-01-17 14:00:57 -08:00
kwyxz e65ad7c6d8 Solaris 11 does not like this POSIX define 2018-01-11 14:50:07 -08:00
twinaphex 08d9ee9600 (PSP) Add thread support 2017-12-26 09:45:45 +01:00
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Alcaro f3c57ee343 Don't allow more than a billion nanoseconds 2017-10-15 23:25:21 +02:00
Alcaro 2c773a0eb8 Whitespace cleanup 2017-10-15 23:25:21 +02:00
twinaphex 0800047258 (Xbox) Buildfixes 2017-09-12 23:44:05 +02:00
Brad Parker 7d3330da74 use DWORD to avoid type mismatch 2017-09-06 23:05:44 -04:00
Brad Parker de27275fc9 CreateThread must specify storage for the thread identifier on <= win98 2017-09-06 23:04:19 -04:00
Brad Parker 9c49b693f3 rthreads: early return if thread was null (temporary fix for shutdown crash in win98) 2017-08-22 23:41:58 -04:00
twinaphex ae2435cf16 Silence some more C89_BUILD warnings 2017-08-12 18:15:26 +02:00
twinaphex e259a8c63b Try to avoid direct initialization 2017-08-06 01:44:34 +02:00
twinaphex 944eb01fb4 Updates 2017-08-06 01:29:41 +02:00
twinaphex 5b1ecbff87 Remove rsemaphore 2017-04-21 20:41:26 +02:00
Brad Parker dd80ffc61b FreeBSD buildfix 2017-03-29 16:47:58 +00:00
twinaphex e95f797307 Try to stay under max. 80-char width limit 2017-02-05 06:01:22 +01:00
twinaphex e99ba9a06a Cleanups 2017-02-05 05:47:15 +01:00
twinaphex df962d5898 Silence warnings 2017-02-05 05:45:08 +01:00
Alcaro 7d30b475ba Merge pull request #4392 from zeromus/master
rthreads work from desmume
2017-02-05 02:12:31 +01:00
zeromus 0ef09a0ed4 win32 scond_wait_timeout: refine 0 timeout logic 2017-02-04 16:24:14 -06:00
zeromus 233c13228e attempt win32 scond_wait_timeout 2017-02-03 21:52:52 -06:00
twinaphex 64bb848daf Update headers (pt. 2 - libretro-common) 2017-01-22 13:58:20 +01:00
zeromus 168de31fb9 make scond_signal slightly more pthreads compliant (and other tidying). re: PR #4392 2017-01-21 22:44:31 -06:00
zeromus 3e8e02c953 change the main lock mutex to a critical section, and update copyrights year 2017-01-21 17:10:09 -06:00
zeromus 10157c5831 apply feedback re: PR #4392 2017-01-21 16:49:10 -06:00
Brad Parker e1f4db8081 Win2000 buildfixes 2017-01-16 20:41:08 -05:00
zeromus f4c187e980 - port slock and scond fixes from desmume
- make sthread_isself return false for null test thread
full disclosure: this work was done months ago. I can't be 100% sure I've merged it correctly with recent rthreads.c changes
2017-01-09 16:46:35 -06:00
Brad Parker 9d7fe2c3f0 early return is mutex is null 2017-01-05 21:20:37 -05:00
Twinaphex c2713a6173 Prevent warning 2016-10-26 02:46:15 +02:00
Higor Eurípedes 330a8d7594 Make thread local storage optional 2016-10-17 21:24:03 -03:00
Higor Eurípedes 471ff4a999 (libretro-common) Add thread local storage 2016-10-17 20:49:37 -03:00
Higor Eurípedes 2109a13ce2 (libretro-common) Fix sthread_isself() documentation 2016-10-17 19:14:31 -03:00
Francisco José García García ba619c1582 (VITA) Increase thread stack, fixes overlays 2016-10-02 15:58:44 +02:00
twinaphex 8025110f07 Cleanups 2016-09-25 05:18:42 +02:00
frangarcj c3bf05de96 (VITA) Let's use SDK pthreads 2016-09-09 17:14:50 +02:00
frangarcj 434d70ce13 (VITA) Silence rthreads 2016-09-06 09:27:52 +02:00
twinaphex aed2dfe630 (psp_pthread.h) Cleanup 2016-08-29 21:26:06 +02:00
Francisco José García García c852c98e70 (VITA) FIX mame2000 2016-08-25 13:56:24 +02:00
Francisco José García García 6e920f17dc (VITA) Add threads support 2016-08-19 02:59:25 +02:00
twinaphex 340519fa61 (libretro-common) Updates 2016-08-11 00:41:11 +02:00
twinaphex c675bcb7d8 (Rthreads) Update for Vita 2016-08-08 19:42:36 +02:00
Ernesto Ramirez 5b17cbcb2a (GX) Fix long lasting bug that prevented PCE CD and SEGA CD games to run on Wii. 2016-07-25 20:27:08 -05:00
twinaphex 51e2da2cbd Revert this back - reintroduce the leak but should hopefully
solve issues on newer Intel CPUs
2016-07-06 13:21:08 +02:00
twinaphex 6a9fb1186d Should hopefully fix issues 2016-07-06 00:32:41 +02:00
twinaphex b0ea1e09ac thread_wrapp - improve this a bit 2016-07-04 11:39:20 +02:00
twinaphex b2bc4cd300 Check if data->func is NULL and if so, early return 2016-07-04 11:32:43 +02:00
FIX94 dc127f1555 fixed a typo in the video settings setup and added back display of the driver specific video settings
(GX) removed a compiler warning
2016-06-25 17:14:31 +02:00
twinaphex e7aedb6fb9 Remove unneeded async_job - plug memory leak in cheevos.c 2016-05-27 05:19:27 +02:00
twinaphex a98616b45b Fix explicit NULL dereferenced/dereference before null check warnings 2016-05-26 17:47:21 +02:00
twinaphex 59f3e733fb (libretro-common) rthreads - PS3 buildfix 2016-05-21 13:38:07 +02:00
Twinaphex 77649b2f23 Fix memory leak in async_job_free 2016-05-06 19:14:38 +02:00
twinaphex 10fe532d29 Cleanup 2016-05-06 06:25:06 +02:00
twinaphex 5db093924c Cleanup - slock_new 2016-05-06 06:05:30 +02:00
twinaphex 001aa3ba4a Add ssem_get - SDL_SemValue equivalent 2016-04-05 19:08:41 +02:00
twinaphex 78426895db (libretro-common) std=c99 compatibility for rsemaphore.c 2016-04-05 18:42:16 +02:00
twinaphex 26d37e006a (libretro-common) This should allow rthreads.c to compile with -std=c99 2016-04-05 17:52:23 +02:00
twinaphex b20989d31d (libretro-common) Update headers 2016-03-21 18:51:44 +01:00
twinaphex f9992c5e47 Update libretro-common 2016-03-21 05:44:45 +01:00
twinaphex f55ee11554 (libretro-common) Header updates 2016-03-20 17:13:31 +01:00
twinaphex 8b9c7a47e4 Move task_queue to queues/ dir 2016-02-09 18:13:47 +01:00
twinaphex 31112e937b Move task_queue.c to libretro-common 2016-02-09 18:11:11 +01:00
twinaphex b5b8886894 (async_job/rsemaphore) Cleanups 2016-01-13 08:58:38 +01:00
twinaphex e2144c20ff Backports/rewrites wmarquesr pt. 1 2015-12-04 10:33:06 +01:00
Andre Leiradella b6f995a1d7 moved the async job queue to the global_t scope 2015-11-08 22:53:17 -02:00
twinaphex 971f5277d7 Move async_job to libretro-common 2015-10-28 07:47:57 +01:00
twinaphex 4d8ead2fb7 Move ra_semaphore to libretro-common - rename rsemaphore 2015-10-28 07:08:27 +01:00
twinaphex 7d3408e731 Cleanups 2015-09-05 21:13:58 +02:00
twinaphex 8f4b4c55b2 (Vita) Add naive implementation for pthread_mutex_trylock 2015-08-30 20:06:51 +02:00
twinaphex 76fe1163c2 Update scond_wait_timeout 2015-08-27 09:22:03 +02:00
twinaphex 1ed7c4ef37 Use C comment 2015-08-12 15:11:01 +02:00
twinaphex d80b24f380 (Vita) We can implement mutexes properly for Vita 2015-08-12 14:59:37 +02:00
Alcaro 4ca6c2398c More C89 cleanups, part 3 2015-06-26 18:35:52 +02:00
Alcaro 97f8188969 Clean up some C99 longlongs. 2015-06-26 16:21:50 +02:00
twinaphex 0634c7e34f (D3D) Start using global->video_data.width and global->video_data.height 2015-04-26 05:35:41 +02:00
twinaphex 12a3e56a55 (libretro-common) Use retro_inline.h everywhere 2015-03-29 16:39:31 +02:00
twinaphex f59aa94ea1 (GX) Buildfix 2015-03-17 06:14:44 +01:00
twinaphex 2063216705 (rthreads) Refactor cond signal 2015-03-16 07:08:42 +01:00
twinaphex a33016d457 Renamed libretro-sdk to libretro-common 2015-02-19 00:04:03 +01:00