paixuduxiesuo

所属分类:进程与线程
开发工具:Visual C++
文件大小:2KB
下载次数:4
上传日期:2012-11-22 12:29:13
上 传 者shuiboninghan
说明:  使用CRITICAL_SECTION实现,有人提出CRITICAL_SECTION不能在A线程lock,然后B线程 unlock 其实这个不是问题,msdn中的描述也只是说不安全,没说一定错误,所以就是要保证lock次数=unlock次数,就不会有问题,代码经过强度测试,表示结果正确
(To use CRITICAL_SECTION to achieve, someone asked the the CRITICAL_SECTION not A thread lock, then thread B unlock In fact, this is not a problem description msdn just not safe, did not say a certain error, it is to ensure that the lock times = unlock times, there would be no problem, correct code has been a strength test, said the results)

文件列表:
排序读写锁\SortRWLock.cpp (4434, 2012-11-22)
排序读写锁\SortRWLock.h (1132, 2012-11-22)
排序读写锁 (0, 2012-11-22)

近期下载者

相关文件


收藏者