internal ComputeEvent(CLEventHandle handle, ComputeCommandQueue queue) { Handle = handle; SetID(Handle.Value); CommandQueue = queue; Type = (ComputeCommandType)GetInfo <CLEventHandle, ComputeEventInfo, int>(Handle, ComputeEventInfo.CommandType, CL12.GetEventInfo); Context = queue.Context; if (ComputeTools.ParseVersionString(CommandQueue.Device.Platform.Version, 1) > new Version(1, 0)) { HookNotifier(); } Trace.WriteLine("Create " + this + " in Thread(" + Thread.CurrentThread.ManagedThreadId + ").", "Information"); }
internal ComputeEvent(CLEventHandle handle, ComputeCommandQueue queue) : this(handle, queue, 0) { Type = (ComputeCommandType)GetInfo <CLEventHandle, ComputeEventInfo, int>(Handle, ComputeEventInfo.CommandType, CL12.GetEventInfo); }
/// <summary> /// Creates an see<see cref="ComputeExternalEvent"/> from an external handle /// </summary> /// <param name="handle"></param> /// <param name="queue"></param> public ComputeExternalEvent(CLEventHandle handle, ComputeCommandQueue queue) : base(handle, queue) { }