summaryrefslogtreecommitdiff
path: root/Cython/Includes/libcpp/execution.pxd
diff options
context:
space:
mode:
Diffstat (limited to 'Cython/Includes/libcpp/execution.pxd')
-rw-r--r--Cython/Includes/libcpp/execution.pxd15
1 files changed, 15 insertions, 0 deletions
diff --git a/Cython/Includes/libcpp/execution.pxd b/Cython/Includes/libcpp/execution.pxd
new file mode 100644
index 000000000..eb92e3404
--- /dev/null
+++ b/Cython/Includes/libcpp/execution.pxd
@@ -0,0 +1,15 @@
+
+cdef extern from "<execution>" namespace "std::execution" nogil:
+ cdef cppclass sequenced_policy:
+ pass
+ cdef cppclass parallel_policy:
+ pass
+ cdef cppclass parallel_unsequenced_policy:
+ pass
+ cdef cppclass unsequenced_policy:
+ pass
+
+ const sequenced_policy seq "std::execution::seq"
+ const parallel_policy par "std::execution::par"
+ const parallel_unsequenced_policy par_unseq "std::execution::par_unseq"
+ const unsequenced_policy unseq "std::execution::unseq"