Unclaimed project
Are you a maintainer of plutovg? Claim this project to take control of your public changelog and roadmap.
This release introduces platform-specific implementations of atomic reference counting and mutex primitives, making plutovg objects thread-safe across supported systems.
Atomic Reference Counting:
_WIN32), InterlockedIncrement, InterlockedDecrement, and InterlockedCompareExchange are used for efficient, lock-free atomic operations on reference counts.<stdatomic.h>, atomic_fetch_add, atomic_fetch_sub, and atomic_load are used.int is provided for platforms without atomic support (non-thread-safe).Mutex Abstraction:
CRITICAL_SECTION is used to implement recursive mutexes.<threads.h>, mtx_t and mtx_recursive are used.These changes lay the foundation for making plutovg safe to use in multi-threaded environments, improving robustness for concurrent applications.