summaryrefslogtreecommitdiff
path: root/src/cl_command_queue.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_command_queue.h
parent04581df0fd79d8b1727deb6b4144b7e683fe667c (diff)
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_command_queue.h')
-rw-r--r--src/cl_command_queue.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cl_command_queue.h b/src/cl_command_queue.h
index 72b7c55c..f0b421da 100644
--- a/src/cl_command_queue.h
+++ b/src/cl_command_queue.h
@@ -40,7 +40,6 @@ struct _cl_command_queue {
cl_int wait_events_num; /* Number of Non-complete user events */
cl_int wait_events_size; /* The size of array that wait_events point to */
cl_command_queue_properties props; /* Queue properties */
- cl_command_queue prev, next; /* We chain the command queues together */
void *thread_data; /* Used to store thread context data */
cl_mem perf; /* Where to put the perf counters */