Mesa (main): u_threaded_context: Support including from C++

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 9 01:32:00 UTC 2021


Module: Mesa
Branch: main
Commit: 00016b425134b3e1b3c8f01ac74b1474c04c7328
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=00016b425134b3e1b3c8f01ac74b1474c04c7328

Author: Jesse Natalie <jenatali at microsoft.com>
Date:   Wed Nov  3 10:22:56 2021 -0700

u_threaded_context: Support including from C++

Acked-by: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed By: Bill Kristiansen <billkris at microsoft.com>

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13670>

---

 src/gallium/auxiliary/util/u_threaded_context.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/gallium/auxiliary/util/u_threaded_context.h b/src/gallium/auxiliary/util/u_threaded_context.h
index ec7438c8e2f..17bdb61bd77 100644
--- a/src/gallium/auxiliary/util/u_threaded_context.h
+++ b/src/gallium/auxiliary/util/u_threaded_context.h
@@ -202,6 +202,10 @@
 #include "util/u_thread.h"
 #include "util/slab.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct threaded_context;
 struct tc_unflushed_batch_token;
 
@@ -608,4 +612,8 @@ tc_buffer_disable_cpu_storage(struct pipe_resource *buf)
    }
 }
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif



More information about the mesa-commit mailing list