diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-28 19:59:14 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-08-28 19:59:14 +0000 |
commit | 8017fe7487ff545ac7be68bd7b339fffffa12b8f (patch) | |
tree | f9e5f5fec9acc96ae66d7369d42803344866facd /src/libutil/serialise.hh | |
parent | 3a7b330b64c6ea77e18a0a96aad7fb14947382d9 (diff) | |
parent | f15651303f8596bf34c67fc8d536b1e9e7843a87 (diff) |
Merge remote-tracking branch 'upstream/master' into single-ca-drv-build
Diffstat (limited to 'src/libutil/serialise.hh')
-rw-r--r-- | src/libutil/serialise.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh index 5309828bc..6f4f4c855 100644 --- a/src/libutil/serialise.hh +++ b/src/libutil/serialise.hh @@ -29,7 +29,8 @@ struct NullSink : Sink { } }; -/* A buffered abstract sink. */ +/* A buffered abstract sink. Warning: a BufferedSink should not be + used from multiple threads concurrently. */ struct BufferedSink : virtual Sink { size_t bufSize, bufPos; @@ -72,7 +73,8 @@ struct Source }; -/* A buffered abstract source. */ +/* A buffered abstract source. Warning: a BufferedSource should not be + used from multiple threads concurrently. */ struct BufferedSource : Source { size_t bufSize, bufPosIn, bufPosOut; |