sc
sc copied to clipboard
Common libraries and data structures for C.
I was in need of a simple string map data structure that would be alphabetically sorted, however the only map implementation in here is a simple hash map. I was...
Optimization: - O(1) `sc_sock_poll_add` - work with only `count` events instead of `cap` - `events` array is not sparse anymore - `sc_sock_poll_wait` returns 0 if no events were actually triggered
Do I understand correctly that `EPOLLET` is not used because Windows `WSAPoll` does not support it?
@tezc sc_map_remap_ ??? What is the better way update memory usage after many attemtps with deliting and adding keys and values? This time i try to use this sheme ```c...
I'm going to have a multi-threaded system with multiple poll objects and poller threads. I want to be able to add/del sockets to a poll object from multiple threads (e.g....
For compatibility reason I think, MinGW-W64 also defined these macros. To be sure it's actually MSVC, use this: #if defined(_WIN32) || defined(_WIN64) #if defined(_MSC_VER) #pragma warning(disable : 4996) #endif #endif...
t1