Oliver Kowalke
abec3a5da6
fix typo: bounded_queue::pop_wait_for()
2013-11-28 19:45:57 +01:00
Nat Goodspeed
d49383151e
Review of recent queue documentation changes and scheduling doc.
2013-11-27 10:57:22 -05:00
Nat Goodspeed
115632b90e
Fix typo in bounded_queue::pop_wait_for() method name.
2013-11-27 09:14:55 -05:00
Nat Goodspeed
bf5428c5d5
Remove extra line containing unmatched double ]].
2013-11-25 12:01:33 -05:00
Oliver Kowalke
e1adfd666c
add doc about scheduling
2013-11-24 17:29:06 +01:00
Oliver Kowalke
ddd4f8fff6
update docu
2013-11-21 17:49:08 +01:00
olk
630db4e54f
Merge pull request #7 from nat-goodspeed/fiber-mt
...
Fix doc about fiber::operator safe_bool(): NOT same as joinable().
2013-11-19 22:20:37 -08:00
Nat Goodspeed
b0d09be850
Fix doc about fiber::operator safe_bool(): NOT same as joinable().
...
Looking at the implementation, it seems that operator safe_bool() and its
companion, operator!(), interrogate whether the referenced fiber has or has
not terminated. joinable() does not.
Add more joinable() cross-references, and cross-reference joinable(), operator
safe_bool() and operator!().
2013-11-18 22:15:49 -05:00
Oliver Kowalke
64529df3b4
changed interface of (un)bounded_queue
2013-11-17 18:55:32 +01:00
Oliver Kowalke
2f522a9688
fix round-robin for asio
2013-11-17 09:49:41 +01:00
olk
7e9bb8e725
Merge pull request #6 from nat-goodspeed/fiber-mt
...
More thorough pass at introducing internal cross-referencing for Boost.Fiber doc.
2013-11-15 01:14:08 -08:00
Nat Goodspeed
e436bc991d
Add class_heading, member_heading et al. QuickBook templates and use for cross-referencing.
2013-11-08 18:30:11 -05:00
olk
3b65eb1b5e
Merge pull request #5 from nat-goodspeed/fiber-mt
...
Fiber mt
2013-11-07 10:26:17 -08:00
Nat Goodspeed
d7b4be06c7
Link this_fiber::thread_affinity() to fiber::thread_affinity().
...
Use [#named_anchor] QuickBook functionality rather than trying to predict the
normalized link for [heading Member function `thread_affinity( bool)`], which
looks like this:
fiber.fiber_mgmt.fiber.member_function__code__phrase_role__identifier__thread_affinity__phrase__phrase_role__special_____phrase___phrase_role__keyword__bool__phrase__phrase_role__special_____phrase___code_
2013-11-07 08:22:58 -05:00
Nat Goodspeed
7c7683ad41
Start adding internal cross-references to fiber documentation
2013-11-06 22:02:43 -05:00
Nat Goodspeed
32af998f3c
Fix markup error in fiber::thread_affinity() Note.
2013-11-06 17:02:24 -05:00
Nat Goodspeed
d9c1272df6
Describe this_fiber::thread_affinity() in terms of fiber::thread_affinity().
...
Also mention that fiber::thread_affinity() is off by default.
2013-11-06 16:31:20 -05:00
Nat Goodspeed
938de04829
Document that bounded_queue constructor can in fact throw.
2013-11-06 16:28:56 -05:00
Nat Goodspeed
919a2993c2
Document new [un]bounded_queue API, plus a bit of guessing.
...
Change certain [un]bounded_queue method signatures to return queue_op_status.
Their previous signatures didn't provide any way to report a closed queue.
For Note: interruption point, document Throws: fiber_interrupted.
Write a few more words about bounded_queue's high water mark and low water
mark.
2013-11-06 15:53:34 -05:00
Nat Goodspeed
634fa3fe6a
Document desired behavior for fiber::thread_affinity().
...
Also clarify Preconditions for fiber::priority().
2013-11-06 15:28:46 -05:00
Oliver Kowalke
1c8cd1d880
protect mutex' with spunlock only
2013-11-05 16:13:29 +01:00
Oliver Kowalke
f3d33345a0
fix scheduler::instance()
2013-11-04 22:10:43 +01:00
Oliver Kowalke
2e1fd67707
yield thief thread before work-stealing
2013-11-03 14:03:44 +01:00
Oliver Kowalke
05af5d856c
some improved spinlock
2013-11-03 13:58:40 +01:00
Oliver Kowalke
ecc0a253f6
remove performance directory
2013-11-02 18:03:50 +01:00
Oliver Kowalke
64c372d059
add thread_affinity() to fiber's public interface
2013-11-02 16:56:24 +01:00
Oliver Kowalke
393797a94e
fix queues related to closed queue and poping values
2013-11-02 14:49:25 +01:00
Oliver Kowalke
bac5c197c0
remove queue::close() from ping_pong example
2013-11-02 14:21:32 +01:00
Oliver Kowalke
6bb976b4d3
fix queues
2013-11-02 14:15:05 +01:00
Oliver Kowalke
99cb841259
some corrections for noexcept specifier
2013-11-02 07:05:03 +01:00
Oliver Kowalke
fbc1e67c25
make fibers thread affin
2013-11-02 06:53:21 +01:00
olk
48ef7e2882
Merge pull request #4 from nat-goodspeed/fiber-mt
...
Clarify condition_variable vs. condition_variable_any.
2013-11-01 22:45:36 -07:00
Nat Goodspeed
5ed6652276
Merge branch 'fiber-mt' of github.com:olk/boost-fiber into fiber-mt.
...
Oliver delegated platform specificity of detail::scheduler::instance_ to
boost::thread_specific_ptr.
2013-11-01 16:12:57 -04:00
Oliver Kowalke
beab239538
use thread_specific_ptr in scheduler
2013-11-01 19:34:43 +01:00
Nat Goodspeed
2d79ce67a0
Clarify condition_variable vs. condition_variable_any.
...
Make condition_variable::wait_until() and wait_for() consistently use 'lk' instead of 'lt' because explanations only describe 'lk'.
Explain condition_variable::wait(), wait_until() and wait_for() Precondition.
Distinguish values returned by wait_until(), wait_for() overloads with and without predicates.
Update request for section concerning algorithm, set_scheduling_algorithm(), round_robin and round_robin_ws.
Clarify lifespan implications of fiber_group::add_fiber(). Explain requirement for a heap fiber object.
Experiment with cross-reference links to other Boost libraries.
2013-10-31 11:19:22 -04:00
Oliver Kowalke
f5d9d6536b
docuemntation
2013-10-28 14:54:00 +01:00
Oliver Kowalke
84467ecfcc
some formating the code
2013-10-28 14:53:48 +01:00
Oliver Kowalke
f04b484a21
fix test coein example simple.cpp
2013-10-28 13:38:22 +01:00
Oliver Kowalke
5b236bc132
add description in code example
2013-10-26 10:31:23 +02:00
Oliver Kowalke
676b9616d6
documentation update (pass #3 )
2013-10-26 10:18:35 +02:00
Oliver Kowalke
9af486515c
performance
2013-10-26 10:13:48 +02:00
Oliver Kowalke
436883ca33
add workstealing round_robin
2013-10-25 18:01:56 +02:00
Oliver Kowalke
c19364b686
add performance test
2013-10-24 21:52:15 +02:00
Oliver Kowalke
a77b36c413
use ws_queue in round_robin
2013-10-24 18:42:38 +02:00
Oliver Kowalke
98f54ad0e4
rename fibers::asio::io_service -> fibers::asio::round_robin
2013-10-24 18:42:07 +02:00
Oliver Kowalke
5b6dc61b2f
update test_migration
2013-10-23 23:19:18 +02:00
Oliver Kowalke
efb329a9e9
add explicit to fiber-ctor
2013-10-23 23:02:34 +02:00
Oliver Kowalke
6f8d1f726d
fix passing fiber_base::ptr_t to fiber ctor for MSVC
2013-10-23 23:00:34 +02:00
Oliver Kowalke
3474425780
fix future<> assing-operators
2013-10-23 19:11:07 +02:00
Oliver Kowalke
c6718b1ee8
add fiber-migration between threads
2013-10-23 18:21:58 +02:00