博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
c++协程4 (boost::coroutine)
阅读量:2388 次
发布时间:2019-05-10

本文共 410 字,大约阅读时间需要 1 分钟。

#include 
#include
#include
using boost::coroutines::coroutine;void cooperative(coroutine
::push_type &sink){ //返回main sink(); throw std::runtime_error("error");}int main(){ coroutine
::pull_type source{ cooperative }; try { //调用cooperative source(); //捕获抛出的异常std::runtime_error } catch (const std::runtime_error &e) { std::cerr << e.what() << '\n'; }}
你可能感兴趣的文章
域控渗透技巧
查看>>
Minion security project and 分布式nmap
查看>>
防火墙相关
查看>>
网络性能测试工具Iperf上手指南
查看>>
opensecuritytraining video
查看>>
collective intelligence framework
查看>>
2015年关注的技术书籍
查看>>
windows 2003 server 记录远程桌面的连接登录日志和修改3389连接端口方法
查看>>
samhain:比较变态的入侵检测系统
查看>>
Linux psacct文档
查看>>
使用setuptools自动安装python模块
查看>>
python IDE环境
查看>>
传说中的windows加固 -.... -
查看>>
windows目录监控软件
查看>>
Virus Bulletin malware分析杂志以及paper
查看>>
Security Considerations for AppLocker
查看>>
Oracle Forensics t00ls
查看>>
JetLeak Vulnerability: Remote Leakage Of Shared Buffers In Jetty Web Server [CVE-2015-2080]
查看>>
zZ-ModSecurity Framework支持Web应用安全核心规则集
查看>>
zz-LDAP详解
查看>>