aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKwok Cheung Yeung <kcy@codesourcery.com>2021-01-25 09:57:38 -0800
committerKwok Cheung Yeung <kcy@codesourcery.com>2021-01-25 09:58:51 -0800
commit0194e2f02d72731e444ae2076db339ffb1448435 (patch)
tree3538634decf7c5e12da4d0f676c02b4b1c4660a7
parentd9ad3b422f00b27d3c1ebef2be5b4510b725d186 (diff)
downloadgcc-0194e2f02d72731e444ae2076db339ffb1448435.zip
gcc-0194e2f02d72731e444ae2076db339ffb1448435.tar.gz
gcc-0194e2f02d72731e444ae2076db339ffb1448435.tar.bz2
libgomp: Add documentation for omp_fulfill_event runtime function
2021-01-25 Kwok Cheung Yeung <kcy@codesourcery.com> libgomp/ * libgomp.texi (omp_fulfill_event): New entry.
-rw-r--r--libgomp/libgomp.texi34
1 files changed, 34 insertions, 0 deletions
diff --git a/libgomp/libgomp.texi b/libgomp/libgomp.texi
index 7350b8e..2c1f1b5 100644
--- a/libgomp/libgomp.texi
+++ b/libgomp/libgomp.texi
@@ -210,6 +210,10 @@ Portable, thread-based, wall clock timer.
* omp_get_wtick:: Get timer precision.
* omp_get_wtime:: Elapsed wall clock time.
+
+Support for event objects.
+
+* omp_fulfill_event:: Fulfill and destroy an OpenMP event.
@end menu
@@ -1401,6 +1405,36 @@ guaranteed not to change during the execution of the program.
+@node omp_fulfill_event
+@section @code{omp_fulfill_event} -- Fulfill and destroy an OpenMP event
+@table @asis
+@item @emph{Description}:
+Fulfill the event associated with the event handle argument. Currently, it
+is only used to fulfill events generated by detach clauses on task
+constructs - the effect of fulfilling the event is to allow the task to
+complete.
+
+The result of calling @code{omp_fulfill_event} with an event handle other
+than that generated by a detach clause is undefined. Calling it with an
+event handle that has already been fulfilled is also undefined.
+
+@item @emph{C/C++}:
+@multitable @columnfractions .20 .80
+@item @emph{Prototype}: @tab @code{void omp_fulfill_event(omp_event_handle_t event);}
+@end multitable
+
+@item @emph{Fortran}:
+@multitable @columnfractions .20 .80
+@item @emph{Interface}: @tab @code{subroutine omp_fulfill_event(event)}
+@item @tab @code{integer (kind=omp_event_handle_kind) :: event}
+@end multitable
+
+@item @emph{Reference}:
+@uref{https://www.openmp.org, OpenMP specification v5.0}, Section 3.5.1.
+@end table
+
+
+
@c ---------------------------------------------------------------------
@c OpenMP Environment Variables
@c ---------------------------------------------------------------------