<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ucontext on Laputa</title>
    <link>https://chenjianyong.com/zh/tags/ucontext/</link>
    <description>Recent content in Ucontext on Laputa</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <lastBuildDate>Sun, 08 May 2022 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://chenjianyong.com/zh/tags/ucontext/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ucontext and coroutine</title>
      <link>https://chenjianyong.com/zh/blog/2022/ucontext-and-coroutine/</link>
      <pubDate>Sun, 08 May 2022 00:00:00 +0000</pubDate>
      <guid>https://chenjianyong.com/zh/blog/2022/ucontext-and-coroutine/</guid>
      <description>&lt;h2 id=&#34;preface&#34;&gt;Preface&lt;/h2&gt;&#xA;&lt;p&gt;最近在看 &lt;a href=&#34;http://docs.seastar.io/master/tutorial.html#seastarthread&#34;&gt;&lt;code&gt;seastar::thread&lt;/code&gt;&lt;/a&gt; 的实现，暂且不说它的巧妙(实际上目前还没有完全看懂，但是 Seastar 出品，必属精品)，我首先注意到了 &lt;em&gt;ucontext&lt;/em&gt;，这是 &lt;code&gt;seastar::thread&lt;/code&gt; 中能够等待一个 unavailable future 的关键，之前没有接触过这套 API，网上搜索了一下相关资料才了解到它居然可以用来实现协程，顿时有了兴趣。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
