<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Yuqi Zheng&apos;s Blog</title><description>Personal blog by Yuqi Zheng.</description><link>https://yuqz.dev/</link><item><title>C++ Async Callbacks: Lambda Capture and the Destruction Order Fiasco</title><link>https://yuqz.dev/blog/cpp-async-callback-lifetime-safety/</link><guid isPermaLink="true">https://yuqz.dev/blog/cpp-async-callback-lifetime-safety/</guid><description>How capturing shared_ptr by value in lambdas prevents use-after-free crashes in async C++ systems — with a real example from the Ray source code.</description><pubDate>Mon, 20 Apr 2026 16:00:00 GMT</pubDate></item><item><title>C++ 异步回调中的生命周期安全：Lambda 捕获与析构顺序陷阱</title><link>https://yuqz.dev/blog/cpp-async-callback-lifetime-safety-zh/</link><guid isPermaLink="true">https://yuqz.dev/blog/cpp-async-callback-lifetime-safety-zh/</guid><description>通过 Ray 源码中的真实案例，解析如何用 shared_ptr 值捕获避免异步 C++ 中的 use-after-free 崩溃。</description><pubDate>Mon, 20 Apr 2026 16:00:00 GMT</pubDate></item><item><title>C++ Async Safety: Guarding Object Lifetime with `weak_from_this`</title><link>https://yuqz.dev/blog/cpp-weak-from-this-lifetime-safety/</link><guid isPermaLink="true">https://yuqz.dev/blog/cpp-weak-from-this-lifetime-safety/</guid><description>How to safely capture `this` in async callbacks using `enable_shared_from_this` and `weak_from_this` — with a real example from the Ray PeriodicalRunner.</description><pubDate>Mon, 20 Apr 2026 16:00:00 GMT</pubDate></item><item><title>C++ 异步编程：用 `weak_from_this` 安全捕获对象生命周期</title><link>https://yuqz.dev/blog/cpp-weak-from-this-lifetime-safety-zh/</link><guid isPermaLink="true">https://yuqz.dev/blog/cpp-weak-from-this-lifetime-safety-zh/</guid><description>通过 Ray PeriodicalRunner 的真实案例，解析如何用 enable_shared_from_this 和 weak_from_this 让异步回调在对象销毁后安全退出。</description><pubDate>Mon, 20 Apr 2026 16:00:00 GMT</pubDate></item></channel></rss>