Repository navigation
Commit d243d07
committed
Add a test of delayed serialization and de-serialization of parcels
delayed_serialization runs on one locality and takes a parcel through what a
parcelport does with it: parcel_await_apply, encoding, decoding with
load_schedule, and scheduling the action after on_receive_complete.
Its argument produces its data asynchronously while the parcel is
preprocessed (a keep-alive buffer and a future handed to
preprocess_future) and sends it as a zero-copy chunk. With zero-copy receive
the data is received into a staging buffer and a post-receive step copies it
into place later. The test checks that one buffer is created whatever the
number of preprocessing rounds, that the parcel keeps it until it has been
sent, that the action runs only after the post-receive step, and the paths
without zero-copy receive, without chunks, and of a plain archive.
The enumeration hpx::serialization::detail::fundamental_types, which
save_binary, save_binary_chunk, load_binary and load_binary_chunk take, is
exported from the C++ module, so serialization code outside of it can call
these functions.
Signed-off-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>1 parent 5bdec6e commit d243d07
3 files changed
Lines changed: 508 additions & 3 deletions
File tree
- libs
- core/serialization/include/hpx/serialization
- full/parcelset/tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments