Compare commits

..

6 commits

Author SHA1 Message Date
89f11efd76 Tweak compare_exchange_weak(...) in spin-lock 2024-01-11 21:05:35 +09:00
918f8241be Fix invalid use of mutex in TSLQueue
Mutex was removed in favor of the custom SharedSpinLock.
2024-01-11 21:05:35 +09:00
4c8cf82a31 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-11 21:05:35 +09:00
fe1eefdd7c Refactor shared-spin-lock to use atomic "spinLock" 2024-01-11 21:05:35 +09:00
3212f3e7dc Minor refactorings 2024-01-11 21:05:35 +09:00
abd65b9a94 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-11 21:05:35 +09:00

View file

@ -323,12 +323,6 @@ 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().
*
* \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
*/
UDPC_EXPORT UDPC_HContext UDPC_init(UDPC_ConnectionId listenId, int isClient, int isUsingLibsodium);