Commit Graph

1840 Commits

Author SHA1 Message Date
Oliver Kowalke
b467846648 fiber unit-tests pass pointer instead of reference (MSVC-14.0 issue) 2017-06-05 16:49:47 +02:00
Oliver Kowalke
debc8505e4 adjust timeouts in unit-test 2017-06-05 16:49:47 +02:00
Oliver Kowalke
116419ccb4 mutex: loop and test in lock() 2017-06-05 16:49:43 +02:00
Oliver Kowalke
05ebaa456e Revert "keep debug symbols in unit-tests"
This reverts commit 2a6ab2aa85.
2017-06-03 09:59:40 +02:00
Oliver Kowalke
4ca8bc6d72 context removed from wait-queue if timeout
- in context of #128
- if a blocking op. timed out, the context must be removed
  from the waiting-queue of the object
2017-06-03 09:58:52 +02:00
Oliver Kowalke
5ad5b5c257 fix warning related to 'Waligned-new' 2017-06-02 16:29:13 +02:00
Oliver Kowalke
2a6ab2aa85 keep debug symbols in unit-tests 2017-06-02 06:09:33 +02:00
Oliver Kowalke
443c7461dc fix scope of context's member vars 2017-05-31 19:01:08 +02:00
Oliver Kowalke
81d92d1d24 remove lambda wrapping context::run_() 2017-05-31 17:11:14 +02:00
Oliver Kowalke
53f82aa349 fix warning in recursive_mutex 2017-05-30 20:53:02 +02:00
Oliver Kowalke
6b651c1ec1 add unit-tests for native APIs 2017-05-30 20:53:02 +02:00
Oliver Kowalke
d2152b0403 fix warnings in unit-tests 2017-05-30 20:25:57 +02:00
Oliver Kowalke
953bcb423e no data transferred via continuation::resume()
- transfer from-context, ready-context, spinlock_lock via context
2017-05-29 18:13:08 +02:00
Oliver Kowalke
b64a52147c Revert "fix default ctor of unbuffered_channel"
This reverts commit 8e4a91433e.
2017-05-27 19:37:02 +02:00
Oliver Kowalke
d89e5389bb unit-tests: build parameters speed/release 2017-05-27 17:12:36 +02:00
Oliver Kowalke
8e4a91433e fix default ctor of unbuffered_channel 2017-05-27 08:59:07 +02:00
Oliver Kowalke
927e90ab41 Merge branch 'develop' 2017-05-26 22:14:49 +02:00
Oliver Kowalke
20b35d847e remove unnecessary assertion in scheduler::schedule_from_remote()
- in context of #123
- a context migh be in the sleep-queue while another threads signals it
2017-05-26 18:20:33 +02:00
Oliver Kowalke
18f8a9a63d spinlock: memory order for failure must not be release
- fix for #126
2017-05-26 18:05:43 +02:00
Oliver Kowalke
ff7a27f0c1 documentation 2017-05-26 15:53:18 +02:00
Oliver Kowalke
9ec4f86993 increasse fiber stack to 8KB in skynet micro-benchmark 2017-05-26 14:33:07 +02:00
Oliver Kowalke
7ad3261dc6 placement new for context 64byte aligned 2017-05-26 14:33:07 +02:00
Oliver Kowalke
651a279e57 remove unused member var remote_nxt_ 2017-05-23 20:18:37 +02:00
Oliver Kowalke
9a651cdcdb scheduler and main-context allocated with new 2017-05-23 20:08:53 +02:00
Oliver Kowalke
c8bca792d7 Merge pull request #127 from glenfe/develop
Construct using the raw pointer and use pointer_traits.to_address
2017-05-23 19:49:26 +02:00
Glen Fernandes
7db270add6 Use pointer_traits.to_address and construct correctly 2017-05-23 12:09:18 -04:00
Oliver Kowalke
6024aa3494 simpler make-context functions 2017-05-23 17:15:14 +02:00
Oliver Kowalke
e86ca17b15 remove dependency to deprecated execution_context (v1) 2017-05-23 17:15:14 +02:00
Oliver Kowalke
a57314c145 add assertion to round-robin 2017-05-23 17:15:14 +02:00
Daniela Engert
7f21bc9006 Fix compiler warning about narrowing.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-23 17:15:14 +02:00
Oliver Kowalke
048535de7a remove alignment keyword 2017-05-23 17:14:53 +02:00
oliver Kowalke
789dc91aa6 fix additional } if segementedstacks=on is applied 2017-05-08 08:48:19 +02:00
Oliver Kowalke
11472ef1b5 documentation update 2017-05-07 08:09:43 +02:00
Oliver Kowalke
87c5f1e404 NUMA support 2017-05-06 22:19:57 +02:00
Oliver Kowalke
7178b59ba2 asio: yield_completion should be managed by a intrusive_ptr
- in context of #99: example yield.hpp possibly destroys locked mutex
2017-05-03 20:16:56 +02:00
Oliver Kowalke
0a6e5bf862 Work around compiler limitations in g++-4.9 2017-04-23 10:19:52 +02:00
Oliver Kowalke
6cabe0be85 documentation: section 'optimization' 2017-04-23 10:19:52 +02:00
Oliver Kowalke
e7bf4ca9b9 spinlock implementation using Intel TSX 2017-04-23 10:19:52 +02:00
Oliver Kowalke
3fff1c0b10 improve spinlock implementations 2017-04-16 14:58:07 +02:00
Oliver Kowalke
cd17e8734a performance test using std::future/std::async 2017-04-16 14:28:49 +02:00
Oliver Kowalke
e2da648726 work-stealing: local random number generator + distribution 2017-04-16 13:15:00 +02:00
Oliver Kowalke
cada40ba91 documentation: update performance section 2017-04-16 13:15:00 +02:00
Oliver Kowalke
fb3fa3da0e Merge branch 'develop' 2017-04-10 17:36:44 +02:00
Oliver Kowalke
62155103f9 documentation: fix perfroamcne numbers of threads 2017-04-10 17:36:20 +02:00
Oliver Kowalke
f812c06ee1 Merge branch 'develop' 2017-04-10 17:29:10 +02:00
Oliver Kowalke
2a9cfb0529 documentation: update performance section 2017-04-10 17:27:37 +02:00
Oliver Kowalke
7abc6ea77b Merge branch 'develop' 2017-04-07 19:24:41 +02:00
Oliver Kowalke
9eecac9f19 Merge pull request #120 from DanielaE/fix/compilation
unbalanced opening parenthesis
2017-04-07 19:23:05 +02:00
Daniela Engert
590dc57254 unbalanced opening parenthesis
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-04-07 17:41:44 +02:00
Oliver Kowalke
4ee133995f Merge branch 'develop' 2017-04-07 16:02:01 +02:00