34074c9ec0
Fixes for Moonlight compatibility on the PS Vita. ( #110 )
...
* Use pthread for vita thread managment
* Add thread name to pthread and remove ipv6 from vita
* Fix inclusion of pthread.h so that it is only included on specific platforms (__vita__)
* Fix memory release in ThreadProc for psvita platform
---------
Co-authored-by: MetalfaceScout <logan.mathis@utahtech.edu >
Co-authored-by: Logan Mathis <33127568+MetalfaceScout@users.noreply.github.com >
2025-07-05 18:57:33 -05:00
Cameron Gutman
59f7f62b62
Fix thread detachment on Vita
2024-02-17 18:14:49 -06:00
Cameron Gutman
9686f6942f
Consolidate PltCloseThread() and PltJoinThread()
2024-02-17 18:14:03 -06:00
GaryOderNichts
9545dd7603
Implement detached threads ( #88 )
...
The `AsyncTerm` thread is never joined but its handle is immediately closed. This works fine on Windows, but causes issues on other platforms where threads need to be explicitly detached if never joined (pthread, wiiu).
This adds a new `PltDetachThread` function, which can be used instead of `PltCloseThread` to explictly detach a thread, requiring it to no longer be closed.
2024-02-17 17:54:32 -06:00
zoey jodon
c104a97fa0
Add platform support for the 3DS
...
Prevent wildcard port binding on the 3DS
Add 3DS threading logic
Add 3DS socket logic
Bump the connection timeout to 60s for the 3DS
2024-01-18 18:30:20 -06:00
Cameron Gutman
71a267fd28
Change PltWaitForEvent to void return type
2021-06-09 19:37:06 -05:00
Cameron Gutman
61b4fc1fe7
Add condition variable support and reimplement PLT_EVENT with it for non-Win32 platforms
2021-06-09 19:29:31 -05:00
GaryOderNichts
e5b39af6a5
some Wii U changes
2021-06-05 01:59:58 +02:00
GaryOderNichts
0c66a50e2d
Wii U platform support
2021-06-04 21:36:54 +02:00
Cameron Gutman
1376c62e5f
Remove declaration of old deleted function
2021-05-25 19:54:27 -05:00
Cameron Gutman
ae92f15b0a
Use SRW locks for our mutex on Windows
...
These avoid a kernel transition for uncontended cases
2021-04-25 15:04:12 -05:00
Cameron Gutman
5f9f7ce407
Code cleanup: use stdbool.h
2020-11-30 20:38:13 -06:00
Cameron Gutman
31aa893acd
Name our threads on Linux
2019-05-03 18:54:40 -07:00
Cameron Gutman
d6971983aa
Use an interruptible sleep to allow our threads to exit sooner
2019-04-06 15:26:59 -07:00
Cameron Gutman
e3dadc3c08
Fix a couple files with bogus permissions
2017-08-20 00:28:15 -07:00
Sunguk Lee
ba27e97698
Add vita environment ( #22 )
...
* vita: initial port
* vita: implement events, enable input thread
* vita: gethostbyname
* vita: Enable audio
* vita: Fix thread crash on discoonect process
* vita: Handle cannot create thread
* vita: now use newlib's socket apis
* vita: Refactoring for moonlight-stream/moonlight-common-c
* Fix review things
https://github.com/moonlight-stream/moonlight-common-c/pull/22#pullrequestreview-2436093
- vita may not support IPv6; so add LC_ASSERT them.
- define inet_ntop to sceNetInetNtop
- guard about failure of sceKernelCreateMutex or sceKernelCreateCond
- remove meanless macros
https://github.com/moonlight-stream/moonlight-common-c/pull/22#pullrequestreview-2444677
- !*mutex to *mutex
- remove useless LC_ASSERT then change to use inet_ntop
in vita system not defined `sockaddr_in6`, so just use `sockaddr_in` instead this.
https://github.com/moonlight-stream/moonlight-common-c/pull/22#pullrequestreview-2445642
- define sin6_addr
2016-10-05 16:43:33 -07:00
Cameron Gutman
48a5d63045
Reorganize the folder structure and delete the Xcode build files
2016-03-31 07:22:03 -04:00