mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-12 12:02:54 +00:00
Also resolve certain previously-dangling internal documentation cross-references: custom, synchronization, scheduling, stack. Add documentation placeholders for mutex (and friends) lock(), try_lock(), unlock() methods. Add documentation placeholders for future (and shared_future) get_exception_ptr() methods. Remove documentation for obsolete future (and shared_future) swap(), operator safe_bool() and operator!() methods.
29 lines
787 B
Plaintext
29 lines
787 B
Plaintext
[/
|
|
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
|
|
]
|
|
|
|
[#custom]
|
|
[section:custom Customization]
|
|
|
|
__boost_fiber__ allows to customize the scheduling algorithm by a user-defined
|
|
implementation.
|
|
A fiber-scheduler must implement interface __algo__. __boost_fiber__ provides
|
|
scheduler [class_link round_robin].
|
|
|
|
void thread_fn() {
|
|
my_fiber_scheduler mfs;
|
|
boost::fibers::set_scheduling_algorithm( & mfs);
|
|
...
|
|
}
|
|
|
|
[heading fiber_context]
|
|
|
|
The fiber_context class is mostly supposed to be opaque. However, certain
|
|
members are available for use by a custom scheduling algorithm.
|
|
|
|
|
|
[endsect]
|