From 89a972bdc8019c7b6fb45ad3a3cd3ae055c529e7 Mon Sep 17 00:00:00 2001 From: codinghuang <2812240764@qq.com> Date: Sat, 1 Jun 2019 11:18:47 +0800 Subject: [PATCH] =?UTF-8?q?Update:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\213-\346\225\264\347\220\206\346\226\207\344\273\266.md" | 5 ++++- ...0\206\344\270\200\344\270\213\346\236\266\346\236\204.md" | 2 +- ...1\250\346\234\237\347\232\204\350\277\207\347\250\213.md" | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git "a/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\346\225\264\347\220\206\346\226\207\344\273\266.md" "b/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\346\225\264\347\220\206\346\226\207\344\273\266.md" index dec7f97..fbbe8e7 100644 --- "a/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\346\225\264\347\220\206\346\226\207\344\273\266.md" +++ "b/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\346\225\264\347\220\206\346\226\207\344\273\266.md" @@ -155,4 +155,7 @@ study_source_file="\ 把`study.c`改成了`study.cc`。 -OK,整理完毕。 \ No newline at end of file +OK,整理完毕。 + +[下一篇:理解PHP生命周期的过程](./《PHP扩展开发》-协程-理解PHP生命周期的过程.md) + diff --git "a/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\346\242\263\347\220\206\344\270\200\344\270\213\346\236\266\346\236\204.md" "b/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\346\242\263\347\220\206\344\270\200\344\270\213\346\236\266\346\236\204.md" index c52760c..d716174 100644 --- "a/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\346\242\263\347\220\206\344\270\200\344\270\213\346\236\266\346\236\204.md" +++ "b/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\346\242\263\347\220\206\344\270\200\344\270\213\346\236\266\346\236\204.md" @@ -4,7 +4,7 @@ 然后,我们需要去实现`PHP`的协程,这个就和协程的一些行为有关了,包括`yield`、`resume`等等。我们把这些实现放在文件`study_coroutine.cc`、`study_coroutine.h`里面。 -最后,我们需要提供协程的接口给`PHP`脚本来使用。我们把这些实现放在文件`study_coroutine_util.cc`里面。 +最后,我们需要提供协程的接口给`PHP`脚本来使用。我们把这些实现放在文件`study_coroutine_util.cc`里面。这个文件会对`PHP`调用协程接口时传递的参数做一些校验工作。 所以,我们创建以下目录以及文件: diff --git "a/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\347\220\206\350\247\243PHP\347\224\237\345\221\275\345\221\250\346\234\237\347\232\204\350\277\207\347\250\213.md" "b/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\347\220\206\350\247\243PHP\347\224\237\345\221\275\345\221\250\346\234\237\347\232\204\350\277\207\347\250\213.md" index 1029346..7d94c80 100644 --- "a/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\347\220\206\350\247\243PHP\347\224\237\345\221\275\345\221\250\346\234\237\347\232\204\350\277\207\347\250\213.md" +++ "b/docs/\343\200\212PHP\346\211\251\345\261\225\345\274\200\345\217\221\343\200\213-\345\215\217\347\250\213-\347\220\206\350\247\243PHP\347\224\237\345\221\275\345\221\250\346\234\237\347\232\204\350\277\207\347\250\213.md" @@ -157,3 +157,5 @@ MSHUTDOWN 这几个生命周期做什么事情,很多内核分析文章有讲。我们这里只需要大致了解一个流程即可。 +[下一篇:梳理一下架构](./《PHP扩展开发》-协程-梳理一下架构.md) + -- GitLab