文件名称:paixuduxiesuo
-
所属分类:
- 标签属性:
- 上传时间:2013-03-16
-
文件大小:2.42kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
使用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 descr iption 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
其实这个不是问题,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 descr iption 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
排序读写锁/SortRWLock.h
排序读写锁
排序读写锁/SortRWLock.h
排序读写锁
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.