summaryrefslogtreecommitdiff
path: root/src/cl_event.h
diff options
context:
space:
mode:
authorJunyan He <junyan.he@intel.com>2016-09-21 17:47:18 +0800
committerYang Rong <rong.r.yang@intel.com>2016-09-23 12:52:40 +0800
commit84898f0ea50a8e617c3d5f69f161adcae2d8abc6 (patch)
treeb69be08f111af1ae21d4344152ee32140313bd5c /src/cl_event.h
parent04581df0fd79d8b1727deb6b4144b7e683fe667c (diff)
downloadbeignet-84898f0ea50a8e617c3d5f69f161adcae2d8abc6.tar.gz
Delete all the verbose locks and use list to store CL objects.
We use context's lock when we add and delete cl objects. Every cl object should use it's own lock to protect itself. We also add some helper functions to ease the adding and removing operations. 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.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cl_event.h b/src/cl_event.h
index 164ca473..85cd53e2 100644
--- a/src/cl_event.h
+++ b/src/cl_event.h
@@ -57,7 +57,6 @@ typedef struct _user_callback {
struct _cl_event {
_cl_base_object base;
cl_context ctx; /* The context associated with event */
- cl_event prev, next; /* We chain the memory buffers together */
cl_command_queue queue; /* The command queue associated with event */
cl_command_type type; /* The command type associated with event */
cl_int status; /* The execution status */