2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-20 02:32:19 +00:00
Commit Graph

108 Commits

Author SHA1 Message Date
Oliver Kowalke
0eeaf2e9ec some clean-up of the code 2013-09-09 09:33:11 +02:00
Oliver Kowalke
e996d2e28f use coroutines inside fiber 2013-09-09 08:52:26 +02:00
Oliver Kowalke
104278aa8a some fixes for auto-linking on WINDOWS 2013-08-18 21:03:29 +02:00
Oliver Kowalke
9d67164839 adapt io_service to wait-op requirements 2013-08-18 10:52:36 +02:00
Oliver Kowalke
4121cac318 add support for timed-operations (wait_for/wait_until) 2013-08-16 21:24:32 +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
77b8f1270c add recursive_mutex 2013-06-25 17:32:40 +02:00
Oliver Kowalke
50441a8980 fiber_group added 2013-06-23 13:02:55 +02:00
Oliver Kowalke
3ba86d0e27 let scheduler::instance() return a pointer 2013-06-23 12:24:42 +02:00
Oliver Kowalke
f3193cb2e3 code clean-up 2013-06-17 17:43:21 +02:00
Oliver Kowalke
3dda52415f consolidate wqueue_t and wqueue_work_t 2013-06-17 17:35:19 +02:00
Oliver Kowalke
cb42a47e7c make io_service useable for c++03 compilers too 2013-06-16 16:18:51 +02:00
Oliver Kowalke
de3bc64e4f boost.asio related stuff (fiber-aware io_servic etc.) 2013-06-14 20:37:47 +02:00
Oliver Kowalke
31c764b7bc some code clean-up 2013-06-14 16:53:46 +02:00
Oliver Kowalke
61c3fd4589 some fixes 2013-06-10 20:11:52 +02:00
Oliver Kowalke
6b5d58d2bb some enhancments 2013-06-09 20:31:38 +02:00
Oliver Kowalke
5396888ec3 atomic-ops removed 2013-03-19 18:19:27 +01:00
Oliver Kowalke
9dfeb585d6 remove code for fiber migration 2013-03-19 17:44:43 +01:00
Oliver Kowalke
7c84b5bac6 release lock in notify() earlier 2013-03-13 19:30:25 +01:00
Oliver Kowalke
dcfb7be88d release lock in unlock() earlier 2013-03-13 19:29:55 +01:00
Oliver Kowalke
8d94982366 swap waiting container;rename container of waiting fibers 2013-03-13 19:27:34 +01:00
Oliver Kowalke
12229bbea2 new future impl: 1.part: promise, future, future_base, future_object 2013-03-03 16:54:53 +01:00
Oliver Kowalke
faa8e41890 move ref-counting into detail::notify 2013-02-24 09:43:50 +01:00
Oliver Kowalke
e27dd76d84 release lock in notify-functions for condition/mutex at last 2013-02-24 07:27:35 +01:00
Oliver Kowalke
92a43d3391 rename fiber::spawn_() to fiber::start_fiber_()nd impl_ to fiber_data_ 2013-02-24 07:26:49 +01:00
Oliver Kowalke
df5c38362b round_robin - memory_order_seq_cst is default 2013-02-23 14:41:47 +01:00
Oliver Kowalke
34b7c7b621 condition uses int for state 2013-02-23 14:41:33 +01:00
Oliver Kowalke
8f0ba61854 mutext uses int for state 2013-02-23 14:41:08 +01:00
Oliver Kowalke
ca0a86b611 spinlock uses int for state 2013-02-23 14:40:34 +01:00
Oliver Kowalke
36f4564f81 fiber_base uses int for state 2013-02-23 14:40:13 +01:00
Oliver Kowalke
c72d952e2a remove is_fiberized() 2013-02-23 10:52:09 +01:00
Oliver Kowalke
68615292d2 remove wake_up/woke_up -> use of is_ready/set_ready instead 2013-02-17 17:40:08 +01:00
Oliver Kowalke
85bb5a8a31 mutex uses notify interface for notifications 2013-02-03 15:55:29 +01:00
Oliver Kowalke
37f2ad6f48 condition uses notify interface for notifications 2013-02-03 15:55:10 +01:00
Oliver Kowalke
9c4bbb2ba4 introduce notify for fiber_base and round_robin 2013-02-03 15:54:41 +01:00
Oliver Kowalke
83b751b62c algorithm::wait() unlock spinlock 2013-02-03 15:49:19 +01:00
Oliver Kowalke
1029fb1464 call yield in spinlock::lock() 2013-02-03 15:44:14 +01:00
Oliver Kowalke
b90459f94d add thread_yield() 2013-02-03 15:43:35 +01:00
Oliver Kowalke
7d25efed7d fix condition::notiy() 2013-01-31 18:53:48 +01:00
Oliver Kowalke
bd1373d18d remove unused check_mtx_ from condition 2013-01-31 18:51:59 +01:00
Oliver Kowalke
5dcab29a55 fix mutex::unlock() 2013-01-31 18:49:19 +01:00
Oliver Kowalke
bc378ad0b6 fix mutext::lock() 2013-01-31 18:49:01 +01:00
Oliver Kowalke
c781386ed7 replace add() by spwan() in algorithm 2013-01-31 18:06:40 +01:00
Oliver Kowalke
8f82a2522c algorithm::wait() does not take spinlock unique-lock 2013-01-31 18:03:45 +01:00
Oliver Kowalke
5a37963c05 spinlock::lock() should do a busy wait
- no yield() or run() should be called if busy waiting
2013-01-31 17:57:01 +01:00
Oliver Kowalke
232c9118d5 add comment regarding to derived code 2013-01-31 17:57:01 +01:00
Oliver Kowalke
d5e85ef828 remove debug output 2013-01-30 19:16:03 +01:00
Oliver Kowalke
1944e657c7 remove unused test var 2013-01-30 17:51:40 +01:00
Oliver Kowalke
58c09646e7 check for self-joining 2013-01-30 17:39:23 +01:00