Oliver Kowalke
19059fb1cd
ioptimize test for fiber in spinlock
2013-12-29 11:34:24 +01:00
Oliver Kowalke
cda3b09042
add test for futures in mt-env
2013-12-29 11:33:31 +01:00
Oliver Kowalke
bc87dc3415
use atomics for intrusive_ptr of shared_state
2013-12-29 11:32:25 +01:00
Oliver Kowalke
67ca128a8f
rename future_base to shared_state
2013-12-29 08:06:21 +01:00
Oliver Kowalke
40d469d346
let notifier for thread's initial context allocate by algoritm
2013-12-28 10:19:06 +01:00
Oliver Kowalke
5d27bb6454
add test waiting for future in other thread
2013-12-28 10:11:48 +01:00
Oliver Kowalke
a24d3d05e8
add missing noexcept specifier for asio::round_robin
2013-12-27 20:32:47 +01:00
olk
d5493caf7e
Update README.md
2013-12-18 22:17:57 +01:00
Oliver Kowalke
dee8c72d2a
rename boost.strand to boost.fiber
2013-12-16 17:58:20 +01:00
Oliver Kowalke
2c9e034f0b
move this_thread::yield() into round_robin schedulers
2013-12-16 17:38:04 +01:00
Oliver Kowalke
aa6f0b1bce
add a note to destructor of fiber in documentation
2013-12-16 17:33:17 +01:00
Oliver Kowalke
d7c0d5d046
call this_thread::yield at some points
2013-12-15 20:02:06 +01:00
Oliver Kowalke
4cc7c54535
main context and this_fiber::thread_affinity()
2013-12-15 17:55:19 +01:00
Oliver Kowalke
9a9d0f03a5
man context calls scheduler::instance()->run() in sleep()
2013-12-15 17:50:15 +01:00
Oliver Kowalke
b8548fd147
main context call scheduler::instance()->run() in yield()
2013-12-15 17:44:22 +01:00
Oliver Kowalke
3b7ed1f45a
changed template args for packaged_task in documentation
2013-12-15 08:31:58 +01:00
Oliver Kowalke
240a57a8ed
fix signature template arg of packaged_task
2013-12-12 20:19:17 +01:00
Oliver Kowalke
7ea3a8968c
html updated
2013-12-08 22:09:03 +01:00
Oliver Kowalke
7594f74568
add required compiler flags for segmentad-stacks
2013-12-08 15:02:49 +01:00
Oliver Kowalke
909c8ed3fc
some smalle fixes in documentation
2013-12-06 08:52:22 +01:00
olk
72943cb4cb
Merge pull request #11 from nat-goodspeed/fiber-mt
...
Update doc for set_scheduling_algorithm() for void return.
2013-12-04 10:50:42 -08:00
Nat Goodspeed
8432f8b864
Update doc for set_scheduling_algorithm() for void return.
...
Add note to set_scheduling_algorithm() about caller's responsibility to
eventually destroy the passed scheduler object.
2013-12-04 13:26:30 -05:00
Oliver Kowalke
d03bc6a984
update scheduling algorithm as Nad suggested
2013-12-04 18:58:36 +01:00
olk
d518a2177e
Merge pull request #10 from nat-goodspeed/fiber-mt
...
Add notes for algorithm::active() and get_main_id() methods.
2013-12-04 09:20:03 -08:00
Nat Goodspeed
025a31d9e2
Add notes for algorithm::active() and get_main_id() methods.
...
This reflects my improved understanding of these methods based on our mail
conversation.
Also state explicitly that you are permitted to supply your own scheduler.
2013-12-04 09:51:27 -05:00
olk
fd86687a9a
Merge pull request #9 from nat-goodspeed/fiber-mt
...
Document set_scheduling_algorithm().
2013-12-03 23:47:31 -08:00
Nat Goodspeed
7eca9fb5fb
Document set_scheduling_algorithm().
...
Add cross-references for that and for algorithm, round_robin and
round_robin_ws.
2013-12-03 22:41:25 -05:00
Oliver Kowalke
511b740ec2
default-scheduler allocated
2013-12-02 19:45:48 +01:00
Oliver Kowalke
b7eb006f0d
Merge branch 'fiber-mt' of git://github.com/nat-goodspeed/boost-fiber into nat-goodspeed-fiber-mt
...
Conflicts:
doc/scheduling.qbk
2013-11-30 07:21:27 +01:00
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