From d7324d2c96c4e8be6f1003dc1235c24d0ad8ecef Mon Sep 17 00:00:00 2001 From: Mike Kinsner Date: Thu, 23 Nov 2023 12:21:17 -0400 Subject: [PATCH 1/2] Host allocation sharing via set final data --- adoc/chapters/programming_interface.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adoc/chapters/programming_interface.adoc b/adoc/chapters/programming_interface.adoc index 8a35db17f..70364bf33 100644 --- a/adoc/chapters/programming_interface.adoc +++ b/adoc/chapters/programming_interface.adoc @@ -6044,7 +6044,7 @@ For example, the following could be used: However, optionally the [code]#buffer::set_final_data()# can be set to a [code]#std::weak_ptr# to enable copying data back, to another host memory -address that is going to be valid after buffer construction. +address that is going to be valid after buffer destruction. [source,,linenums] ---- From 7d418c67ffc7e9ef9cffb739aed3fdcbf432739f Mon Sep 17 00:00:00 2001 From: Mike Kinsner Date: Tue, 12 Dec 2023 10:13:30 -0400 Subject: [PATCH 2/2] Improve wording around destruction --- adoc/chapters/programming_interface.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adoc/chapters/programming_interface.adoc b/adoc/chapters/programming_interface.adoc index 70364bf33..c058f803c 100644 --- a/adoc/chapters/programming_interface.adoc +++ b/adoc/chapters/programming_interface.adoc @@ -6044,7 +6044,7 @@ For example, the following could be used: However, optionally the [code]#buffer::set_final_data()# can be set to a [code]#std::weak_ptr# to enable copying data back, to another host memory -address that is going to be valid after buffer destruction. +address that will be valid when the buffer is destroyed. [source,,linenums] ----