libhv
libhv copied to clipboard
建议 hmutex.h 添加 try
建议 hmutex.h 添加 try
需要的话你提PR吧
#define hmutex_trylock TryEnterCriticalSection
#define hmutex_trylock(pmutex) (pthread_mutex_trylock(pmutex) == 0)
#define hsem_trywait(psem) hsem_wait_for(psem, 0)
我也想写 水平不够 -_-!
这不是写的挺好吗