What steps will reproduce the problem?
1.
执行并发一张中的第一个程序,会发现程序正常运行,断言��
�常
实质上是因为代码书写错误导致了程序的运行正常
What is the expected output? What do you see instead?
在并发的测试链表的增加和删除时,删除节点的线程可能删除得更快,这样根本无
法得到RET_OK的结果,为什么断言正常是因为代码中dlist_delete��
�返回值被硬编码
为了RET_OK,按照意图,我认为这段代码的返回值应该是直接��
�回ret才对,也就是说
删除线程过快的删除,会返回
INVALID_PARAM,这应该是个代码错误。
如果想要真实的体现消费者和生产者,我觉得应该用条件变量cond。
What version of the product are you using? On what operating system?
cygwin, ubuntu
Please provide any additional information below.
Original issue reported on code.google.com by pocke...@gmail.com on 13 May 2010 at 3:01
Original issue reported on code.google.com by
pocke...@gmail.com
on 13 May 2010 at 3:01