jeremyczhen / fdbus

FDBus - Fast Distributed Bus
https://blog.csdn.net/jeremy_cz/article/details/89060291
161 stars 85 forks source link

fdubs timer may has problem #28

Open ByteXiaoTang opened 3 years ago

ByteXiaoTang commented 3 years ago

the CBaseLoopTimer may has problem. 程序有需求,消息来时创建timer指针,得到回复之后就delete指针。 这样来回new和delete大概几百次之后,就会引起程序cordump.

ByteXiaoTang commented 3 years ago

同样的手法,用boost库的timer不会有问题

ByteXiaoTang commented 3 years ago

前提是将timer放在了一个map中