Let\'s say there are two Command Queues and I want to synchronize them using events. It can be done like this:
cl_event event1; clEnqueueNDRangeKernel(queue1, <