Compare commits

..

7 commits

Author SHA1 Message Date
56ee5c3aed Tweak compare_exchange_weak(...) in spin-lock
All checks were successful
Publish doxygen documentation to seodisparate.com / doxygen-gen-and-publish (push) Successful in 0s
2024-01-12 13:32:05 +09:00
07c7a405ae Fix invalid use of mutex in TSLQueue
Mutex was removed in favor of the custom SharedSpinLock.
2024-01-12 13:32:05 +09:00
4917fc47f6 Don't fail on "try" fns if failed to get spinLock
In SharedSpinLock: Only fail on "try" fns after spinLock was acquired
and condition is not met.
2024-01-12 13:32:05 +09:00
a0f8bf0b41 Refactor shared-spin-lock to use atomic "spinLock" 2024-01-12 13:32:05 +09:00
d1354b13d5 Minor refactorings 2024-01-12 13:32:05 +09:00
05087406b1 Reland C++11 "shared_lock" with iter remove fix
On iterator remove, the iterator will trade the read lock for a write
lock, and trade back for a read lock once the remove has been completed.
2024-01-12 13:32:05 +09:00
02651c793e Add note in docs about update for UDPC_init(...)
All checks were successful
Publish doxygen documentation to seodisparate.com / doxygen-gen-and-publish (push) Successful in 0s
2024-01-12 13:31:36 +09:00

View file

@ -323,6 +323,12 @@ UDPC_EXPORT UDPC_ConnectionId UDPC_create_id_hostname(const char *hostname, uint
* *
* \warning The received UDPC_HContext must be freed with a call to UDPC_destroy(). * \warning The received UDPC_HContext must be freed with a call to UDPC_destroy().
* *
* \note This function creates a context that does not use a separate thread to
* call update periodically. You must call \ref UDPC_update() periodically,
* enable threaded update with \ref UDPC_enable_threaded_update or \ref
* UDPC_enable_threaded_update_ms, or use \ref UDPC_init_threaded_update or
* \ref UDPC_init_threaded_update_ms instead of \ref UDPC_init .
*
* \return A UDPC context * \return A UDPC context
*/ */
UDPC_EXPORT UDPC_HContext UDPC_init(UDPC_ConnectionId listenId, int isClient, int isUsingLibsodium); UDPC_EXPORT UDPC_HContext UDPC_init(UDPC_ConnectionId listenId, int isClient, int isUsingLibsodium);