Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Threading / AbandonedMutexException.cs / 1305376 / AbandonedMutexException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // //[....] // // AbandonedMutexException // Thrown when a wait completes because one or more mutexes was abandoned. // AbandonedMutexs indicate serious error in user code or machine state. //////////////////////////////////////////////////////////////////////////////// namespace System.Threading { using System; using System.Runtime.Serialization; using System.Threading; using System.Runtime.InteropServices; [Serializable] [ComVisibleAttribute(false)] public class AbandonedMutexException : SystemException { private int m_MutexIndex = -1; private Mutex m_Mutex = null; public AbandonedMutexException() : base(Environment.GetResourceString("Threading.AbandonedMutexException")) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(String message, Exception inner ) : base(message, inner) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(int location, WaitHandle handle) : base(Environment.GetResourceString("Threading.AbandonedMutexException")) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } public AbandonedMutexException(String message,int location, WaitHandle handle) : base(message) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } public AbandonedMutexException(String message, Exception inner,int location, WaitHandle handle ) : base(message, inner) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } private void SetupException(int location, WaitHandle handle) { m_MutexIndex = location; if(handle != null) m_Mutex = handle as Mutex; } [System.Security.SecuritySafeCritical] // auto-generated protected AbandonedMutexException(SerializationInfo info, StreamingContext context) : base(info, context) { } public Mutex Mutex { get { return m_Mutex; } } public int MutexIndex { get{ return m_MutexIndex; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // //[....] // // AbandonedMutexException // Thrown when a wait completes because one or more mutexes was abandoned. // AbandonedMutexs indicate serious error in user code or machine state. //////////////////////////////////////////////////////////////////////////////// namespace System.Threading { using System; using System.Runtime.Serialization; using System.Threading; using System.Runtime.InteropServices; [Serializable] [ComVisibleAttribute(false)] public class AbandonedMutexException : SystemException { private int m_MutexIndex = -1; private Mutex m_Mutex = null; public AbandonedMutexException() : base(Environment.GetResourceString("Threading.AbandonedMutexException")) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(String message, Exception inner ) : base(message, inner) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); } public AbandonedMutexException(int location, WaitHandle handle) : base(Environment.GetResourceString("Threading.AbandonedMutexException")) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } public AbandonedMutexException(String message,int location, WaitHandle handle) : base(message) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } public AbandonedMutexException(String message, Exception inner,int location, WaitHandle handle ) : base(message, inner) { SetErrorCode(__HResults.COR_E_ABANDONEDMUTEX); SetupException(location,handle); } private void SetupException(int location, WaitHandle handle) { m_MutexIndex = location; if(handle != null) m_Mutex = handle as Mutex; } [System.Security.SecuritySafeCritical] // auto-generated protected AbandonedMutexException(SerializationInfo info, StreamingContext context) : base(info, context) { } public Mutex Mutex { get { return m_Mutex; } } public int MutexIndex { get{ return m_MutexIndex; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NativeCompoundFileAPIs.cs
- MouseOverProperty.cs
- ImageSourceConverter.cs
- JournalEntry.cs
- FontDriver.cs
- AttributeData.cs
- ListViewCancelEventArgs.cs
- DoWorkEventArgs.cs
- CompensateDesigner.cs
- CollectionViewProxy.cs
- brushes.cs
- DataBindEngine.cs
- FileAuthorizationModule.cs
- Base64WriteStateInfo.cs
- EnumMemberAttribute.cs
- TypeListConverter.cs
- X509Utils.cs
- Int16.cs
- EditorZoneBase.cs
- MonitorWrapper.cs
- XmlNodeChangedEventManager.cs
- ParseHttpDate.cs
- SchemaNotation.cs
- Solver.cs
- FormsAuthenticationUserCollection.cs
- FormatConvertedBitmap.cs
- SessionSwitchEventArgs.cs
- ReadOnlyMetadataCollection.cs
- HighlightComponent.cs
- DesignerSerializationVisibilityAttribute.cs
- Directory.cs
- HttpChannelListener.cs
- ConnectionPoolManager.cs
- WpfGeneratedKnownProperties.cs
- XmlSchemaAnnotated.cs
- ClientApiGenerator.cs
- RotateTransform.cs
- IsolatedStorageFile.cs
- WebPartChrome.cs
- XsdCachingReader.cs
- CodeMethodMap.cs
- StateWorkerRequest.cs
- RelationshipFixer.cs
- WindowsTokenRoleProvider.cs
- PropertyGroupDescription.cs
- ExceptionUtil.cs
- SafePEFileHandle.cs
- AttachedPropertyMethodSelector.cs
- ClientProtocol.cs
- ListViewCancelEventArgs.cs
- TypePropertyEditor.cs
- XamlTreeBuilder.cs
- NativeRightsManagementAPIsStructures.cs
- ApplyHostConfigurationBehavior.cs
- TreeIterator.cs
- ToolBarButton.cs
- Int16Converter.cs
- OdbcReferenceCollection.cs
- StringExpressionSet.cs
- wmiprovider.cs
- StringDictionaryCodeDomSerializer.cs
- UniqueSet.cs
- UserPreferenceChangedEventArgs.cs
- MultipleViewPattern.cs
- GlyphElement.cs
- AssemblyUtil.cs
- DelegateHelpers.Generated.cs
- DbProviderFactory.cs
- SafeNativeMethodsCLR.cs
- HMACSHA256.cs
- SourceChangedEventArgs.cs
- WorkflowDesigner.cs
- X509IssuerSerialKeyIdentifierClause.cs
- EnumMember.cs
- XmlSchemaObjectCollection.cs
- DataGridViewColumnConverter.cs
- ComponentChangedEvent.cs
- ListBindableAttribute.cs
- RegexFCD.cs
- SelectionEditingBehavior.cs
- XPathNodeHelper.cs
- MdImport.cs
- ProxyWebPartConnectionCollection.cs
- DesignerDeviceConfig.cs
- QueryReaderSettings.cs
- OleDbException.cs
- BreakRecordTable.cs
- UpdateRecord.cs
- InvariantComparer.cs
- _ProxyChain.cs
- PropertyDescriptorCollection.cs
- DataBindingHandlerAttribute.cs
- ContainerUIElement3D.cs
- ManipulationDeltaEventArgs.cs
- DebuggerAttributes.cs
- SystemNetHelpers.cs
- ToolStripContentPanel.cs
- WebRequestModuleElementCollection.cs
- LinkLabelLinkClickedEvent.cs
- ToolStripLabel.cs