2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-13 00:12:17 +00:00

Nat Goodspeed:

- Change some doc references from 'algorithm' to 'sched_algorithm'.
- Initial cut at supporting arbitrary user-coded scheduler properties.
- Set fiber_properties::sched_algo_ every time through awakened().
- Define sched_algorithm methods on fiber_base*, not worker_fiber*.
- Simplify detail::fifo by making tail_ point to last link pointer.
- Reimplement waiting_queue::push() using pointer-to-pointer trick.
- Reimplement waiting_queue::move_to() using fiber_base** scan.
- Make bounded_queue::tail_ a ptr* to simplify appending new nodes.
- Make unbounded_queue::tail_ a ptr* to simplify linking new nodes.
- Remove thread_affinity flag and access methods.
- Re-add thread_affinity specific to workstealing_round_robin.
- Remove 'priority' for every fiber, and its support methods.
This commit is contained in:
Oliver Kowalke
2014-11-12 20:03:12 +01:00
parent 6a1257442b
commit 1e751d7dbf
22 changed files with 391 additions and 279 deletions

View File

@@ -179,15 +179,6 @@ void test_move()
}
}
void test_priority()
{
boost::fibers::fiber f( f1);
BOOST_CHECK_EQUAL( 0, f.priority() );
f.priority( 7);
BOOST_CHECK_EQUAL( 7, f.priority() );
f.join();
}
void test_id()
{
boost::fibers::fiber s1;
@@ -353,7 +344,6 @@ boost::unit_test::test_suite * init_unit_test_suite( int, char* [])
test->add( BOOST_TEST_CASE( & test_move) );
test->add( BOOST_TEST_CASE( & test_id) );
test->add( BOOST_TEST_CASE( & test_priority) );
test->add( BOOST_TEST_CASE( & test_detach) );
test->add( BOOST_TEST_CASE( & test_complete) );
test->add( BOOST_TEST_CASE( & test_join_in_thread) );