collection
collection copied to clipboard
没地方放的代码,懒得开新项目了,放这里吧。
Results
2
collection issues
Sort by
recently updated
recently updated
newest added
可如下复现: int raw_thread(void*p) { float pi = 3.14; printf("remote: hello %s\n", (char*)p); ctx_swapcontext(&cc, &mc); printf("remote: back again\n"); ctx_swapcontext(&cc, &mc); printf("remote: return, %f\n", pi); return 1024; } 切换为posix ucontext系列函数不会core。 从glibc源码看,都使用的FNSTENV保存FPU的环境信息; gdb...
在`/collection/blob/master/vintage/context/`目录下的测试文件`test_*.cpp`代码写的有问题,有重复定义的bug,应该是 `#include "contextu.h"`