Oliver Kowalke
0949cc3911
return fiber from resume()/resume_with()
2018-01-24 13:57:44 +01:00
Oliver Kowalke
ab0865e168
implementation of fibers without scheduler according to P0876R0
2018-01-16 20:19:12 +01: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
05646ee266
build unit-tests with variant release
2017-06-11 19:12:01 +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
d61ee3c66c
unit-tests: build parameters speed/release
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
4b8a730919
support ucontext_t in callcc()
2017-06-01 18:20:02 +02:00
Oliver Kowalke
da4a903634
unit-test: buffer length for snprintf
2017-04-22 22:12:22 +02:00
Oliver Kowalke
1abb5c4d32
enhance unit-test
2017-04-06 17:32:54 +02:00
Oliver Kowalke
d767a2371b
replace BOOST_ASSERT by BOOST_CHECK in unit-test
2017-04-05 12:15:06 -07:00
Oliver Kowalke
7dfdede718
fix typo in unit-test
2017-04-05 17:21:29 +00:00
Oliver Kowalke
da597edbbe
add missing header in unit-tests
2017-04-05 17:33:07 +02:00
oliver Kowalke
8c6047adf5
add unit-tests related to snprintf()
2017-04-05 08:19:56 +02:00
Nick Vrvilo
7fb76426bc
Include missing header in test_fcontext.cpp
2017-04-04 14:48:58 -05:00
Oliver Kowalke
a1cc765318
unit-test for var-args added
2017-03-20 17:18:29 +00:00
Oliver Kowalke
705e6a0640
fix unit-test for callcc() (Windows)
2017-03-09 20:18:02 +01:00
Oliver Kowalke
82293a2c03
rename of continuation member functions
2017-03-05 10:22:48 +01:00
Aaron Gorenstein
7046102c2a
Deliberate-failure tests shouldn't be optimized
...
A few tests designed to deliberately fail appeal to UB (undefined
behavior), but as the MSVC optimizer improves we will take advantage of
that to remove UB statements. In order for deliberate failures to occur,
the tests must have the optimizer turned off.
2017-02-14 12:24:00 -08:00
Oliver Kowalke
25ed545efb
ontop-fn accept rvalue reference to continuation
2017-02-04 06:58:17 +01:00
oliver Kowalke
3a822359ec
resume() -> continuation::operator()
2017-02-02 09:19:10 +01:00
oliver Kowalke
98291526a7
rename transfer_data() -> get_data()
2017-02-01 09:30:35 +01:00
Oliver Kowalke
dbd95e8421
callcc() -> resume()
2017-01-05 18:59:02 +01:00
Oliver Kowalke
ac38815b6d
refactor all.hpp
2017-01-02 10:07:18 +01:00
Oliver Kowalke
6aafda324d
decouple passed types
2017-01-02 10:07:17 +01:00
Oliver Kowalke
d32842cb50
context-fn signature continuation(*)(continuation &&)
2016-12-28 14:28:44 +01:00
Oliver Kowalke
ba37cd3968
remove template arg from callcc()
2016-12-28 12:36:25 +01:00
Oliver Kowalke
b78e0c894b
return values transferred by continuation
2016-12-26 10:11:06 +01:00
oliver Kowalke
7ab9ace7b3
introduction of callcc()/continuation<>
2016-12-25 21:23:04 +01:00
oliver Kowalke
7db7873401
enable unit-test only if <thread> is supported
2016-12-13 08:06:01 +01:00
Oliver Kowalke
df7f46260a
unit-test: enable ontop-exception
2016-12-04 12:09:55 +01:00
Oliver Kowalke
ba3673d9cb
add unit-tests for fcontext
2016-11-26 19:45:39 +01:00
oliver Kowalke
1aa4e6a320
Merge branch 'ontop' into develop
2016-11-21 08:19:56 +01:00
Oliver Kowalke
e607528e4a
reduced signature of ontop-fn
2016-11-21 08:19:02 +01:00
Oliver Kowalke
b2149a615a
reduced signature of ontop-fn
2016-11-17 19:56:26 +01:00
Oliver Kowalke
a83c1dcc62
fix unit test
2016-11-11 16:43:20 +01:00
Oliver Kowalke
2bfdd768d3
fix unit-test
2016-10-15 08:25:29 +02:00
Oliver Kowalke
2e5430fd27
disable warning for MSVC
2016-10-11 11:49:39 +02:00
Oliver Kowalke
d7e39b4c18
pass ecv2 a universal reference to context-fn
2016-10-07 19:20:30 +02:00
oliver Kowalke
b1472d4338
use macro BOOST_MSVC in unit-test
2016-09-26 09:04:41 +02:00
oliver Kowalke
5d6e4a61c0
use macro BOOST_MSVC in unit-test
2016-09-26 08:59:35 +02:00
oliver Kowalke
ff4f933429
unit-tests: use defect macro for thread_local
2016-09-15 08:51:50 +02:00
Oliver Kowalke
f91dbd674a
fix test-function name
2016-07-31 20:55:57 +02:00
Oliver Kowalke
648c24c3f5
execute seh-test in separate thread
2016-07-31 20:55:27 +02:00
Oliver Kowalke
61ab618846
rename test_windows_nulled_stack()
2016-07-31 17:45:53 +02:00
Oliver Kowalke
087b68382a
test for 12340 (SEH test on Windows)
2016-07-31 17:45:00 +02:00