Oliver Kowalke
d31bb68ed2
use temporaries for constructing context
2018-01-24 13:40:04 +01:00
Oliver Kowalke
fe1ca6ca83
test ofr valid fiber in resume()/resume_with()
2018-01-23 19:14:23 +01:00
Oliver Kowalke
ab0865e168
implementation of fibers without scheduler according to P0876R0
2018-01-16 20:19:12 +01:00
Oliver Kowalke
f154ac73b6
add control file for Travice CI
2017-12-20 15:33:01 +01:00
Oliver Kowalke
1d474cb2e4
use continuation::swap() for context version
2017-12-20 07:44:09 +01:00
Oliver Kowalke
75125efc6e
set default stacksize to 128kB for all platforms
2017-11-05 07:55:56 +01:00
Oliver Kowalke
92be737ce2
use defect macro for std::invoke()
2017-10-06 10:53:50 +02:00
Oliver Kowalke
e2663ba473
return exit-code from example
2017-10-02 15:19:52 +02:00
Oliver Kowalke
59ead04c0a
move thread-local pointer of current action-record in compilation unit
...
- prevents error C4251 on Windows
2017-10-02 14:19:43 +02:00
Oliver Kowalke
56359c87a8
Merge pull request #68 from z33ky/develop
...
use perfect forwarding for StackAlloc
2017-09-24 08:48:58 +02:00
Alexander 'z33ky' Hirsch
0001e82e58
use perfect forwarding for StackAlloc
2017-09-22 21:41:01 +02:00
oliver Kowalke
d63df81833
wrap ASan code
2017-09-13 07:48:46 +02:00
Oliver Kowalke
4cbf241b19
Merge pull request #67 from SSE4/clang_windows
...
- define asm sources for Clang on Windows
2017-09-03 10:35:55 +02:00
SSE4
0660558a39
- define asm sources for Clang on Windows
2017-09-03 12:50:02 +07:00
Oliver Kowalke
94bb3e3879
fix use of ASan API (swapcontext)
...
- in context of #65
- still needs fix for ASan generated: Shadow memory range interleaves with an existing memory mapping. ASan cannot proceed correctly. ABORTING.
2017-09-02 10:06:28 +02:00
Oliver Kowalke
82bf54e9c2
clean-up of move ctro/assignment
2017-08-29 19:08:19 +02:00
Michael Johns
035d2d78f3
Fix i386/macho routines to correctly return transfer_t in EAX/EDX
...
The OSX 32bit ABI differs from the System V ABI in that 8 byte structs
are returned in registers EAX/EDX instead of passing the address of the
struct on the stack. See: https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/LowLevelABI/130-IA-32_Function_Calling_Conventions/IA32.html
The current implementation for this platform crashes when compiled for
32bit OSX (e.g. when running a 32bit iOS simulator) due to not
satisfying the ABI.
2017-08-24 19:05:57 +02:00
Oliver Kowalke
420554fe9a
function executed by resume_with() has to return a continuation
2017-08-10 18:20:29 +02:00
Oliver Kowalke
8346fbfa89
no data transfer with call/cc
2017-08-01 09:43:29 +02:00
Oliver Kowalke
34ffb559cd
use std::ceil for stack size in protected stack
2017-06-29 22:41:34 +02:00
Oliver Kowalke
3bbc81a5e7
set default-stacksize to 64kB
2017-06-24 13:37:30 +02:00
Oliver Kowalke
fce5aef348
fix example for FreeBSD
2017-06-17 17:14:00 +02:00
Oliver Kowalke
df8c107f91
example demonstrating continuation::resume_with()
2017-06-16 17:34:44 +02:00
Oliver Kowalke
70d488c819
reset data pointer for execution function ontop
2017-06-16 17:13:08 +02:00
Oliver Kowalke
e038a7402c
fix minimum/default stacksize for POSIX
2017-06-15 18:06:11 +02:00
Oliver Kowalke
ae8f6547b8
fixedsize_stack uses malloc()
2017-06-15 18:05:58 +02:00
Oliver Kowalke
05646ee266
build unit-tests with variant release
2017-06-11 19:12:01 +02:00
Oliver Kowalke
aa76b0e7ab
define _XOPEN_SOURCE on MacOS X for ucontext
2017-06-11 19:11:38 +02:00
Oliver Kowalke
6de3a2b15f
remove unused function page_count()
2017-06-10 15:32:48 +02:00
Oliver Kowalke
d0ecf08e88
disable warning C4702
2017-06-10 14:52:14 +02:00
oliver Kowalke
0ae429ec82
refactor continuation creation
2017-06-09 08:00:02 +02:00
Oliver Kowalke
83b0c1e031
check if constexpr is supported
2017-06-08 21:40:11 +02:00
Oliver Kowalke
0d5531dc91
intel-17 does not deal with curly brakets
2017-06-05 17:36:50 +02:00
Oliver Kowalke
5e3ac84269
use conditional expression likely/unlikely
2017-06-04 20:36:15 +02:00
Oliver Kowalke
7254c77110
add prefetching
2017-06-04 20:27:03 +02:00
Oliver Kowalke
ad29fd3afd
update performance docu
2017-06-04 20:27:03 +02:00
Oliver Kowalke
5af0f67848
no overload of create_context() for preallocated
2017-06-04 20:27:03 +02:00
Oliver Kowalke
01365a56c1
keep debug symbols in unit-tests
2017-06-04 20:27:03 +02:00
Oliver Kowalke
fbb225121d
disable warning C4702 (MSVC) in unit-test
2017-06-04 20:27:03 +02:00
Oliver Kowalke
82e307a5ad
add unit-test for call/cc for native APIs
2017-06-04 20:27:03 +02:00
Oliver Kowalke
cf53ef95e2
disable warning C4996 (MSVC) in unit-test
2017-06-04 20:27:03 +02:00
oliver Kowalke
492784dda3
update performance numbers
2017-06-04 20:27:03 +02:00
Oliver Kowalke
d61ee3c66c
unit-tests: build parameters speed/release
2017-06-04 20:27:03 +02:00
Oliver Kowalke
c0baca035b
documentation
2017-06-04 20:27:03 +02:00
Oliver Kowalke
fa890b1c4d
adapt Jamfiles for new properties
2017-06-04 20:27:03 +02:00
Oliver Kowalke
f1b7c8698d
documentation
2017-06-04 20:27:03 +02:00
Oliver Kowalke
a72f69607f
support WinFibers in callcc()
2017-06-04 20:27:03 +02:00
Oliver Kowalke
e0ee17c8f9
reorder members of control structures
...
- ASAN throw an error if salloc_ was initilized after arg_
(stack was overwriten)
2017-06-01 18:20:02 +02:00
Oliver Kowalke
c8c40ac8b5
aligned placement new for control structures
2017-06-01 18:20:02 +02:00
Torkel Bjørnson-Langen
7c3082d1f8
spelling corrections in doc/callcc.qbk
2017-06-01 18:20:02 +02:00