예제 #1
0
                public static RecursiveMutex FromBaseObject(BaseObject baseObj)
                {
                    if (baseObj == null || baseObj.NativeObject == IntPtr.Zero)
                    {
                        return(null);
                    }
                    RecursiveMutex obj = baseObj as  RecursiveMutex;

                    if (object.Equals(obj, null))
                    {
                        obj = new RecursiveMutex(CreatedWhenConstruct.CWC_NotToCreate);
                        obj.BindNativeObject(baseObj.NativeObject, "CRecursiveMutex");
                        obj.IncreaseCast();
                    }

                    return(obj);
                }
예제 #2
0
                public BaseObject Create()
                {
                    RecursiveMutex emptyInstance = new RecursiveMutex(CreatedWhenConstruct.CWC_NotToCreate);

                    return(emptyInstance);
                }