<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Cpp17 - 标签 - LoveIt</title>
        <link>https://zhengqijun0121.github.io/blog/tags/cpp17/</link>
        <description>Cpp17 - 标签 - LoveIt</description>
        <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>zhengqijun0121@qq.com (zhengqijun0121)</managingEditor>
            <webMaster>zhengqijun0121@qq.com (zhengqijun0121)</webMaster><copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright><lastBuildDate>Sat, 10 Jan 2026 09:00:00 &#43;0800</lastBuildDate><atom:link href="https://zhengqijun0121.github.io/blog/tags/cpp17/" rel="self" type="application/rss+xml" /><item>
    <title>C&#43;&#43;17 实现定时器触发任务</title>
    <link>https://zhengqijun0121.github.io/blog/024_cpp17%E5%AE%9E%E7%8E%B0%E5%AE%9A%E6%97%B6%E5%99%A8%E8%A7%A6%E5%8F%91%E4%BB%BB%E5%8A%A1/</link>
    <pubDate>Sat, 10 Jan 2026 09:00:00 &#43;0800</pubDate>
    <author>zhengqijun0121@qq.com (zhengqijun0121)</author>
    <guid>https://zhengqijun0121.github.io/blog/024_cpp17%E5%AE%9E%E7%8E%B0%E5%AE%9A%E6%97%B6%E5%99%A8%E8%A7%A6%E5%8F%91%E4%BB%BB%E5%8A%A1/</guid>
    <description><![CDATA[<h2 id="c17-定时器实现支持单次循环任务线程安全">C++17 定时器实现（支持单次/循环任务、线程安全）</h2>
<p>该实现完全基于C++17标准特性，核心采用<strong>单调时钟steady_clock</strong>（避免系统时间修改导致的计时偏差）、优先队列管理任务（按触发时间排序，效率最优），支持线程安全的任务添加、取消、定时器启停，同时处理了任务异常、计时累积误差等常见问题。</p>]]></description>
</item>
</channel>
</rss>
