![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C && C++
xinlu0311
这个作者很懒,什么都没留下…
展开
-
win32 读写锁
#define _RW_LOCK_h_#include "stdint.h"#include #include #define RWLOCK_FREE 0#define RWLOCK_LOCKED 1class CRWLock{public: inline CRWLock(void):m_ulRLock(0),m_ulWLock(0),m_ulPreLock(0){}; void原创 2008-12-23 08:54:00 · 488 阅读 · 0 评论 -
win32 线程同步缓冲队列
用于进程内线程间数据通信/同步 //CBufList.h #ifndef _BUF_LIST_h_ #define _BUF_LIST_h_ #include "CRWLock.h" #include enum eBufCellStatus{ eFree = 0, eAllocated, eActived,};#defi原创 2008-12-23 09:02:00 · 433 阅读 · 0 评论