2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-12 12:02:54 +00:00
Files
fiber/examples/cpp03/Jamfile.v2
Nat Goodspeed b5a75be2a0 Add priority.cpp example program.
This illustrates use of a sched_algorithm_with_properties<PROPS> subclass that
defines, and supports, a priority property. The example includes a (somewhat
contrived) case in which a fiber must be moved within the scheduler's ready
queue due to a priority change.
2014-11-19 10:47:06 -05:00

57 lines
2.0 KiB
Plaintext

# Boost.Fiber Library Examples Jamfile
# Copyright Oliver Kowalke 2013.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# For more information, see http://www.boost.org/
import common ;
import feature ;
import indirect ;
import modules ;
import os ;
import toolset ;
project boost/fiber/example
: requirements
<library>../../build//boost_fiber
<library>/boost/atomic//boost_atomic
<library>/boost/coroutine//boost_coroutine
<library>/boost/system//boost_system
<library>/boost/thread//boost_thread
<toolset>gcc-4.7,<segmented-stacks>on:<cxxflags>-fsplit-stack
<toolset>gcc-4.7,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
<toolset>gcc-4.8,<segmented-stacks>on:<cxxflags>-fsplit-stack
<toolset>gcc-4.8,<segmented-stacks>on:<cxxflags>-DBOOST_USE_SEGMENTED_STACKS
<link>static
<threading>multi
# <define>BOOST_ASIO_ENABLE_HANDLER_TRACKING
;
exe barrier : barrier.cpp ;
exe future : future.cpp test_future.cpp ;
exe futures_mt : futures_mt.cpp ;
exe interrupt : interrupt.cpp ;
exe join : join.cpp ;
exe ping_pong : ping_pong.cpp ;
exe priority : priority.cpp ;
exe segmented_stack : segmented_stack.cpp ;
exe simple : simple.cpp test_fiber.cpp ;
exe migrate_fibers
: migration/migrate_fibers.cpp
migration/workstealing_round_robin.cpp
;
exe asio/daytime_client : asio/daytime_client.cpp ;
exe asio/daytime_client2 : asio/daytime_client2.cpp ;
exe asio/echo_client : asio/echo_client.cpp ;
exe asio/echo_client2 : asio/echo_client2.cpp ;
exe asio/echo_server : asio/echo_server.cpp ;
exe asio/echo_server2 : asio/echo_server2.cpp ;
exe asio/publish_subscribe/server : asio/publish_subscribe/server.cpp ;
exe asio/publish_subscribe/publisher : asio/publish_subscribe/publisher.cpp ;
exe asio/publish_subscribe/subscriber : asio/publish_subscribe/subscriber.cpp ;