public ComputeCommandQueue(ComputeContext context, ComputeDevice device, ComputeCommandQueueFlags properties) { handle = CL10.CreateCommandQueue(context.handle, device.handle, properties, out _); this.device = device; this.context = context; Events = new List <ComputeEvent>(); #if DEBUG Trace.WriteLine("Create " + this + " in Thread(" + Thread.CurrentThread.ManagedThreadId + ").", "Information"); #endif }