Function: create_event_with_flag
C Prototype |
aclError aclrtCreateEventWithFlag(aclrtEvent *event, uint32_t flag) |
|---|---|
Python Function |
event, ret = acl.rt.create_event_with_flag(flag) |
Function Usage |
Creates an event with a flag. Events with different flags are used for different functions. When an event is created, multiple flags can be carried (bitwise OR operation) to enable the corresponding flag function. |
Input Description |
flag: int, event flag. The options are as follows:
|
Return Value |
event: int, pointer address of the created event object. ret: int, error code.
|
Restrictions |
When this API is called to create an event, flag is a bitmap. Operations can be performed on a single flag or multiple flags, for example, acl.rt.create_event_with_flag( ACL_EVENT_TIME_LINE | ACL_EVENT_SYNC).
|