diff options
author | Junyan He <junyan.he@intel.com> | 2016-12-21 19:05:29 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-12-28 17:36:11 +0800 |
commit | 9da345181a2637b617cc3b4f7e96fa90e1731764 (patch) | |
tree | f7729088b16448e2da6175fd44378f13a3219f4b /src/cl_event.h | |
parent | d36d99f741d6b55a910df899674e81a0057082dd (diff) | |
download | beignet-9da345181a2637b617cc3b4f7e96fa90e1731764.tar.gz |
Refine list related functions.
Make the list related functions more clear and readable.
Signed-off-by: Junyan He <junyan.he@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_event.h')
-rw-r--r-- | src/cl_event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cl_event.h b/src/cl_event.h index f67299c4..d36a8c6f 100644 --- a/src/cl_event.h +++ b/src/cl_event.h @@ -32,7 +32,7 @@ typedef struct _cl_event_user_callback { cl_bool executed; /* Indicat the callback function been called or not */ cl_event_notify_cb pfn_notify; /* Callback function */ void *user_data; /* Callback user data */ - list_head node; /* Event callback list node */ + list_node node; /* Event callback list node */ } _cl_event_user_callback; typedef _cl_event_user_callback *cl_event_user_callback; @@ -47,7 +47,7 @@ typedef struct _cl_event { cl_event *depend_events; /* The events must complete before this. */ cl_uint depend_event_num; /* The depend events number. */ list_head callbacks; /* The events The event callback functions */ - list_head enqueue_node; /* The node in the enqueue list. */ + list_node enqueue_node; /* The node in the enqueue list. */ cl_ulong timestamp[4]; /* The time stamps for profiling. */ cl_ulong queued_timestamp; enqueue_data exec_data; /* Context for execute this event. */ |