Implementing an event timer using boost::asio

后端 未结 3 809
暖寄归人
暖寄归人 2021-01-24 15:42

The sample code looks long, but actually it\'s not so complicated :-)

What I\'m trying to do is, when a user calls EventTimer.Start(), it will execute the callba

3条回答
  •  迷失自我
    2021-01-24 16:30

    I figured it out, but I don't know why that I have to put io.reset() in Start(), since it's already been called in Stop().

    See the updated code in the post.

提交回复
热议问题