コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Wrapper{T}"/> class with the specified ThreadManager synchronization mode.
 /// </summary>
 /// <param name="threadManagerMode"></param>
 public Wrapper(ThreadManagerMode threadManagerMode = ThreadManagerMode.Synchronous)
 {
     this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
     this.NativePtr = NativeMethods.op_wrapper_new(this._DataType, threadManagerMode);
 }
コード例 #2
0
 protected WorkerConsumer(IntPtr ptr, bool isEnabledDispose = true) :
     base(ptr, isEnabledDispose)
 {
     this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
 }
コード例 #3
0
 internal DatumProducer(IntPtr ptr, bool isEnabledDispose = true) :
     base(isEnabledDispose)
 {
     this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
     this.NativePtr = ptr;
 }
コード例 #4
0
 internal UserWorkerConsumer(IntPtr ptr, bool isEnabledDispose = true) :
     base(ptr, isEnabledDispose)
 {
     this._DataType = GenericHelpers.CheckDatumSupportTypes <T>();
     this.NativePtr = ptr;
 }