oliver Kowalke
292528cbc9
examples: add reference to boost.filesystem in Jamfile
2017-11-17 10:05:25 +01:00
Oliver Kowalke
78f6b0f9ea
CUDA binding
...
- waitfor stream(s) to complete while fiber is suspended
2017-11-01 17:20:08 +01:00
Oliver Kowalke
328bf234d1
fix examples for Solaris
2017-06-17 15:07:14 +02:00
Oliver Kowalke
4bb776e515
add work-stealing example
2017-06-13 17:52:00 +02:00
Oliver Kowalke
87c5f1e404
NUMA support
2017-05-06 22:19:57 +02:00
Oliver Kowalke
7843617641
fix asio integration, thx to Arnaud Kapp
2016-11-24 19:25:21 +01:00
Oliver Kowalke
b53e167a68
support for channels refactored
...
- buffered_channel: MPMC with lock-free guarantees
- unbuffered_channel: rendezvous point
2016-10-30 19:33:49 +01:00
Oliver Kowalke
1f81bc2a5f
Merge branch 'exp' into develop
2016-05-22 07:20:22 +02:00
Oliver Kowalke
8681668213
rename example autoecho
2016-04-27 19:14:48 +02:00
Oliver Kowalke
e29082cea1
remove example asio/echo, make autoecho single threaded
2016-04-25 19:08:07 +02:00
Nat Goodspeed
3b9c8f0b46
Add autoecho.cpp to drive echo client/server automatically.
2016-04-05 21:17:35 -04:00
Oliver Kowalke
fc73bdfc52
merge examples echo_client+echo_server into one application
2016-02-29 19:00:42 +01:00
Oliver Kowalke
e43cf5b1ac
enum for context types
2016-02-15 19:49:22 +01:00
Oliver Kowalke
51f4cb1a26
update asio integration in directory examples
2016-01-29 17:04:15 +01:00
Oliver Kowalke
ff8537d153
re-enable example wait_stuff
2015-12-17 20:05:49 +01:00
Oliver Kowalke
b196c2d872
disable example wait_stuff from build
2015-12-14 20:45:46 +01:00
Oliver Kowalke
ca655a84d9
execute func + set active fiber inside context::resume()
2015-11-22 14:28:09 +01:00
Oliver Kowalke
5973f6a262
add work-stealing example
2015-10-21 15:26:55 +02:00
Oliver Kowalke
edd439233a
fixups for asio examples
2015-10-17 14:41:53 +02:00
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