Ejemplo n.º 1
0
func CLSetUserEventStatus(event CL_event,
	execution_status CL_int) CL_int {
	return CL_int(C.clSetUserEventStatus(event.cl_event, C.cl_int(execution_status)))
}
Ejemplo n.º 2
0
// Sets the execution status of a user event object.
//
// `status` specifies the new execution status to be set and
// can be CL_COMPLETE or a negative integer value to indicate
// an error. A negative integer value causes all enqueued commands
// that wait on this user event to be terminated. clSetUserEventStatus
// can only be called once to change the execution status of event.
func (e *Event) SetUserEventStatus(status int) error {
	return toError(C.clSetUserEventStatus(e.clEvent, C.cl_int(status)))
}
Ejemplo n.º 3
0
Archivo: event.go Proyecto: xfong/tmpCL
func (ev *Event) SetUserEventStatus(status CommandExecStatus) error {
	return toError(C.clSetUserEventStatus(ev.clEvent, (C.cl_int)(status)))
}