예제 #1
0
                /// <summary>
                /// 与外部传进来的互斥体指针进行绑定
                /// </summary>
                /// <param name="mutex">外部的互斥体指针</param>
                /// <returns></returns>
                public MutexLocker(EarthView.World.Core.Mutex mutex) : base(CreatedWhenConstruct.CWC_NotToCreate)
                {
                    NameValuePairList list       = new NameValuePairList();
                    BasePtr           valuemutex = new BasePtr(mutex);

                    list.Add("mutex", valuemutex.PtrVal);
                    Create("CMutexLocker", list);
                    RegisterCallBack();
                    this.needDispose = true;
                    GlobalTraceInfoMap.Put(this);
                }
예제 #2
0
 public void Wait(ref EarthView.World.Core.Mutex mtx)
 {
     EarthView_World_Core_CCondition_wait_void_CMutex(this.NativeObject, object.Equals(mtx, null) ? IntPtr.Zero : mtx.NativeObject);
 }