Compare commits

..

8 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
894a564774 Update LICENSE year
All checks were successful
Publish doxygen documentation to seodisparate.com / doxygen-gen-and-publish (push) Successful in 0s
2024-01-11 21:05:21 +09:00
bf84a1f2d4 Update debug optimization flag 2024-01-11 21:05:02 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ set(UDPC_SOURCES
add_compile_options(
-Wall -Wextra -Wpedantic -Wno-missing-braces
$<$<COMPILE_LANGUAGE:CXX>:-Weffc++>
$<$<CONFIG:DEBUG>:-O0>
$<$<CONFIG:DEBUG>:-Og>
)
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019-2023 Stephen Seo
Copyright (c) 2019-2024 Stephen Seo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal