rocr: Add WaitMultiple to core Signal
Replaces WaitAny with WaitMultiple to more closely align with the underlying driver API for waiting on multiple events. WaitMultiple adds a single parameter, wait_on_all, to the WaitAny interface providing a single function for waiting on multiple events when we only need AND and OR semantics for the signal checking logic. Change-Id: I68a4a45d48151d9d69aef02fd8f7263b9e6c0e75
This commit is contained in:
committed by
David Yat Sin
parent
c51aa0d155
commit
8a38f121ea
@@ -909,6 +909,15 @@ hsa_status_t HSA_API
|
||||
return amdExtTable->hsa_amd_async_function_fn(callback, arg);
|
||||
}
|
||||
|
||||
// Mirrors Amd Extension Apis
|
||||
uint32_t HSA_API hsa_amd_signal_wait_all(uint32_t signal_count, hsa_signal_t* signals,
|
||||
hsa_signal_condition_t* conds, hsa_signal_value_t* values,
|
||||
uint64_t timeout_hint, hsa_wait_state_t wait_hint,
|
||||
hsa_signal_value_t* satisfying_values) {
|
||||
return amdExtTable->hsa_amd_signal_wait_all_fn(signal_count, signals, conds, values, timeout_hint,
|
||||
wait_hint, satisfying_values);
|
||||
}
|
||||
|
||||
// Mirrors Amd Extension Apis
|
||||
uint32_t HSA_API
|
||||
hsa_amd_signal_wait_any(uint32_t signal_count, hsa_signal_t* signals,
|
||||
|
||||
Reference in New Issue
Block a user