]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/context/example/v2/jump_void.cpp
2 // Copyright Oliver Kowalke 2014.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
10 #include <boost/context/all.hpp>
12 namespace ctx
= boost::context
;
14 ctx::execution_context
< void > f1( ctx::execution_context
< void > ctxm
) {
15 std::cout
<< "f1: entered first time" << std::endl
;
17 std::cout
<< "f1: entered second time" << std::endl
;
22 ctx::execution_context
< void > ctx1( f1
);
24 std::cout
<< "f1: returned first time" << std::endl
;
26 std::cout
<< "f1: returned second time" << std::endl
;
28 std::cout
<< "main: done" << std::endl
;