diff options
Diffstat (limited to 'offload/liboffload/API/Queue.td')
-rw-r--r-- | offload/liboffload/API/Queue.td | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/offload/liboffload/API/Queue.td b/offload/liboffload/API/Queue.td index fea9283..6e86b24 100644 --- a/offload/liboffload/API/Queue.td +++ b/offload/liboffload/API/Queue.td @@ -32,8 +32,8 @@ def : Function { } def : Function { - let name = "olWaitQueue"; - let desc = "Wait for the enqueued work on a queue to complete."; + let name = "olSyncQueue"; + let desc = "Block the calling thread until the enqueued work on a queue is complete."; let details = []; let params = [ Param<"ol_queue_handle_t", "Queue", "handle of the queue", PARAM_IN> @@ -41,6 +41,23 @@ def : Function { let returns = []; } +def : Function { + let name = "olWaitEvents"; + let desc = "Make any future work submitted to this queue wait until the provided events are complete."; + let details = [ + "All events in `Events` must complete before the queue is unblocked.", + "The input events can be from any queue on any device provided by the same platform as `Queue`.", + ]; + let params = [ + Param<"ol_queue_handle_t", "Queue", "handle of the queue", PARAM_IN>, + Param<"ol_event_handle_t *", "Events", "list of `NumEvents` events to wait for", PARAM_IN>, + Param<"size_t", "NumEvents", "size of `Events`", PARAM_IN>, + ]; + let returns = [ + Return<"OL_ERRC_INVALID_NULL_HANDLE", ["Any event handle in the list is NULL"]>, + ]; +} + def : Enum { let name = "ol_queue_info_t"; let desc = "Supported queue info."; |