Re: [Beignet] [PATCH 1/2] Fixed a thread safe bug.

2015-07-14 Thread Zhigang Gong
Please ignore this version as I forgot to remove the debug message. Just sent out the version 2. Thanks, Zhigang Gong. On Wed, Jul 15, 2015 at 08:54:33AM +0800, Zhigang Gong wrote: > From: Zhigang Gong > > last_event and current_event should be thread private data. > > Signed-off-by: Zhigang G

[Beignet] [PATCH 1/2] Fixed a thread safe bug.

2015-07-14 Thread Zhigang Gong
From: Zhigang Gong last_event and current_event should be thread private data. Signed-off-by: Zhigang Gong --- src/cl_api.c | 4 +++- src/cl_command_queue.c | 18 -- src/cl_command_queue.h | 2 -- src/cl_event.c | 18 +- src/cl_thread.c