src/thread/vita


Log

Author Commit Date CI Message
Sam Lantinga 0479df53 2023-01-09T09:48:21 Updated copyright for 2023
Sam Lantinga d59caffe 2022-12-13T14:03:40 Added support for clang thread-safety analysis The annotations have been added to SDL_mutex.h and have been made public so applications can enable this for their own code. Clang assumes that locking and unlocking can't fail, but SDL has the concept of a NULL mutex, so the mutex functions have been changed not to report errors if a mutex hasn't been initialized. We do have mutexes that might be accessed when they are NULL, notably in the event system, so this is an important change. This commit cleans up a bunch of rare race conditions in the joystick and game controller code so now everything should be completely protected by the joystick lock. To test this, change the compiler to "clang -Wthread-safety -Werror=thread-safety -DSDL_THREAD_SAFETY_ANALYSIS"
Sam Lantinga b8d85c69 2022-11-30T12:51:59 Update for SDL3 coding style (#6717) I updated .clang-format and ran clang-format 14 over the src and test directories to standardize the code base. In general I let clang-format have it's way, and added markup to prevent formatting of code that would break or be completely unreadable if formatted. The script I ran for the src directory is added as build-scripts/clang-format-src.sh This fixes: #6592 #6593 #6594 (cherry picked from commit 5750bcb174300011b91d1de20edb288fcca70f8c)
Sam Lantinga b7cc4dce 2022-11-29T08:50:51 Fixed bug #6698 - VISA: wrong check sceKernelPollSema (cherry picked from commit f077c691930f70a2e826eb40cbd0e35a7465a4af)
pionere 0b7a9a8e 2022-11-29T17:30:03 thread: code style (cherry picked from commit 461a38ff1af1d749426c8e2c6f2a56e2b31c1a45)
Sylvain 8cda5102 2022-11-29T16:14:23 Fixed bug #6698 - VISA: wrong check sceKernelPollSema
pionere ee13e8c7 2022-11-29T09:46:20 thread: return -1 from SDL_SemWaitTimeout if semaphore is NULL (cherry picked from commit f6db1aba664079e63df44cbb6e6925a088b8f3a8)
Sylvain Becker fb0ce375 2022-11-27T17:38:43 Cleanup add brace (#6545) * Add braces after if conditions * More add braces after if conditions * Add braces after while() conditions * Fix compilation because of macro being modified * Add braces to for loop * Add braces after if/goto * Move comments up * Remove extra () in the 'return ...;' statements * More remove extra () in the 'return ...;' statements * More remove extra () in the 'return ...;' statements after merge * Fix inconsistent patterns are xxx == NULL vs !xxx * More "{}" for "if() break;" and "if() continue;" * More "{}" after if() short statement * More "{}" after "if () return;" statement * More fix inconsistent patterns are xxx == NULL vs !xxx * Revert some modificaion on SDL_RLEaccel.c * SDL_RLEaccel: no short statement * Cleanup 'if' where the bracket is in a new line * Cleanup 'while' where the bracket is in a new line * Cleanup 'for' where the bracket is in a new line * Cleanup 'else' where the bracket is in a new line (cherry picked from commit 6a2200823c66e53bd3cda4a25f0206b834392652 to reduce conflicts merging between SDL2 and SDL3)
pionere ebdd5366 2022-01-17T16:26:02 use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError
Sam Lantinga 120c76c8 2022-01-03T09:40:00 Updated copyright for 2022
Sylvain 4d566e5d 2021-11-22T16:39:22 VITA, PSP: use SDL_malloc
Ivan Epifanov 512355d7 2021-09-20T20:21:05 Vita: fix thread detach. Remove leftover KillThread
Ivan Epifanov ddcd847c 2021-09-20T14:08:01 Vita: fix thread priority Add support for thread name and stack size
Ivan Epifanov e3ea5b64 2021-04-24T10:16:21 Migrate to lightweight mutexes
Ivan Epifanov a4ddb175 2021-03-08T19:28:58 Formatting
Ivan Epifanov 189d3c16 2021-01-20T23:41:35 FIFO is default (and not defined in vitasdk, ugh)
Ivan Epifanov 87a118b6 2021-01-20T23:33:28 Use native mutexes
Ivan Epifanov 7423ae1a 2021-01-20T23:33:16 Formatting
Ivan Epifanov 7b0b1a12 2020-12-23T17:26:52 Update thread api to 2.0.14
Ivan Epifanov 2d64e37e 2020-11-02T18:09:43 Initial rebase of xerpi's port