Oliver Kowalke
b032457397
asio examples added
2015-10-10 21:50:22 +02:00
Oliver Kowalke
ae67ee1694
asio's spawn()
2015-10-05 19:23:16 +02:00
Oliver Kowalke
5d71a4f8cd
asio examples
2015-10-04 20:08:21 +02:00
Oliver Kowalke
275ae3b981
add additional examples
2015-09-30 17:38:44 +02:00
Oliver Kowalke
48d652adab
add example wait_stuff
2015-09-29 20:27:33 +02:00
Oliver Kowalke
6d24450d40
example futures_mt removed
2015-09-29 20:26:35 +02:00
Oliver Kowalke
d0cb6e6756
some examples
2015-09-22 21:10:14 +02:00
Oliver Kowalke
eafeaaae01
remove examples and tests
2015-09-16 19:12:57 +02:00
Oliver Kowalke
8c4dda107c
support signaling a fiber from another thread
...
- for this first version lockfree::queue<> is used
- maybe Dimitry Byukov's mpsc intrusive queue is better suited
2015-09-13 09:20:35 +02:00
Oliver Kowalke
070606d2d1
disable asio examples
...
- interaction with external event-loops not implemented
2015-09-11 20:45:54 +02:00
Oliver Kowalke
4dc5aaab59
add example of work-sharing
2015-09-07 11:53:13 +02:00
Nat Goodspeed
37f413c357
Snapshot of wait_stuff.cpp: several wait_any() variants working.
...
We now have:
wait_any_value(): for when passed functions cannot throw exceptions;
wait_first_outcome(): get earliest result/exception;
wait_first_success(): get first non-exception result.
2015-08-28 15:16:48 -04:00
Nat Goodspeed
c52a914906
Add examples/when_stuff.cpp illustrating when_any_simple().
...
when_any_simple() is "simple" in the sense that we don't care about return
values or possible exceptions -- we only want to know when the shortest
subtask completes.
This source is a work in progress. We intend to add more cases.
2015-08-25 10:13:25 -04:00
Nat Goodspeed
685ba8f16f
Add examples/adapt_nonblocking.cpp.
...
This illustrates how Fiber can ease the problem of wrapping retries for
nonblocking I/O in an event-driven program.
2015-08-23 17:20:49 -04:00
Nat Goodspeed
550aae5029
Add examples/adapt_method_calls.cpp.
...
This illustrates how to interface a synchronous Fiber function with an async
API whose notification consists of an abstract base class with virtual
success/error methods.
2015-08-23 11:53:33 -04:00
Nat Goodspeed
7beab5b285
Add examples/adapt_callbacks.cpp.
...
This illustrates a few different ways of using promise and future to interface
between an asynchronous callback and the Fiber library.
2015-08-23 11:17:10 -04:00
Nat Goodspeed
2687814477
Merge branch 'develop' of github.com:olk/boost-fiber into sched-props-dev
...
Resolved conflicts:
doc/condition_variables.qbk
examples/cpp03/migration/workstealing_round_robin.cpp
examples/cpp03/migration/workstealing_round_robin.hpp
include/boost/fiber/algorithm.hpp
include/boost/fiber/bounded_queue.hpp
include/boost/fiber/detail/fiber_base.hpp
include/boost/fiber/detail/fifo.hpp
include/boost/fiber/detail/waiting_queue.hpp
include/boost/fiber/detail/worker_fiber.hpp
include/boost/fiber/fiber.hpp
include/boost/fiber/fiber_manager.hpp
include/boost/fiber/fixedsize_stack.hpp
include/boost/fiber/operations.hpp
include/boost/fiber/round_robin.hpp
include/boost/fiber/unbounded_queue.hpp
src/detail/worker_fiber.cpp
src/fiber.cpp
src/fiber_manager.cpp
src/round_robin.cpp
2015-05-10 22:03:35 -04:00
Oliver Kowalke
ec2d9c6021
add asio examples
2015-02-12 16:29:01 +01:00
Oliver Kowalke
ee0b84240d
remove asio examples
2015-02-10 18:45:26 +01:00
Oliver Kowalke
502581e1e1
remove example fiber-migration
2015-02-10 17:38:44 +01:00
Oliver Kowalke
3b332c17ee
variadric arguments
2015-01-01 14:40:39 +01:00
Oliver Kowalke
584dcdceee
allocate/deallocate fiber_base via allocator
2014-12-29 17:38:01 +01:00
Oliver Kowalke
f6c7ab7826
rename (un)bounded_queue -> (un)bounded_channel + use allocator
2014-12-28 21:30:14 +01:00
Oliver Kowalke
e9e8ec1b85
fix examples
2014-12-27 21:17:13 +01:00
Oliver Kowalke
2f19be6d67
use C++11
2014-12-27 19:07:42 +01:00
Oliver Kowalke
22850775ca
variadric tempalte args
2014-07-15 20:33:14 +02:00
Oliver Kowalke
e72e388843
enable other examples
2014-06-29 13:24:52 +02:00
Oliver Kowalke
026003bb65
use the free fm_<xyz> - functions
2014-06-17 11:51:14 +02:00
Oliver Kowalke
ab91ab52b8
changes for boost.asio
2014-03-23 18:20:15 +01:00
Oliver Kowalke
a1e3c1d081
merge from branch feature/tls
2014-03-08 10:16:22 +01:00
Oliver Kowalke
67111d3e58
workstealing round-robin scheduler moved to examples
2014-03-04 18:01:42 +01:00
Oliver Kowalke
2b37b33011
use asymmetric_coroutine<> from (coroutine branch develop)
2014-02-22 21:26:28 +01:00
Oliver Kowalke
8de7066392
fix library name in Jamfile
2013-12-30 15:33:13 +01:00
Oliver Kowalke
3cc7d06482
additional example for transfering future between threads
2013-12-29 22:21:44 +01:00
Oliver Kowalke
7594f74568
add required compiler flags for segmentad-stacks
2013-12-08 15:02:49 +01:00
Oliver Kowalke
ec8a11e60c
atomic fiber::state_
2013-10-17 19:21:26 +02:00
Oliver Kowalke
147d41833a
remove exception example
2013-10-01 19:43:29 +02:00
Oliver Kowalke
500c1e605b
example regarding to exceptions
2013-09-29 11:05:57 +02:00
Oliver Kowalke
4465d50c0c
example interrupting fiber
2013-09-29 10:42:11 +02:00
Oliver Kowalke
2a6ea310a1
fix linkingissue
2013-09-28 16:53:04 +02:00
Oliver Kowalke
84d2a50491
fix Jamfiles and multithreading
2013-09-28 10:24:47 +02:00
Oliver Kowalke
32405f7a99
add asio example demonstaratiing sync. of fibers
2013-09-11 09:27:27 +02:00
Oliver Kowalke
e996d2e28f
use coroutines inside fiber
2013-09-09 08:52:26 +02:00
Oliver Kowalke
d91578120f
fix libname
2013-08-18 22:14:10 +02:00
Oliver Kowalke
9d67164839
adapt io_service to wait-op requirements
2013-08-18 10:52:36 +02:00
Oliver Kowalke
3485f551aa
add async()
2013-08-18 10:30:15 +02:00
Oliver Kowalke
94482d25b6
add time-point to schedulable fiber
2013-08-13 18:23:53 +02:00
Oliver Kowalke
f06b6cf0d4
fix auto-link in config.hpp
2013-08-13 10:27:02 +02:00
Oliver Kowalke
9d58afd3ec
add some examples using boost.asio async_result
2013-06-16 16:19:24 +02:00
Oliver Kowalke
de3bc64e4f
boost.asio related stuff (fiber-aware io_servic etc.)
2013-06-14 20:37:47 +02:00