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
- SqlBulkCopyColumnMapping.cs
- OutgoingWebResponseContext.cs
- WebSysDefaultValueAttribute.cs
- ProjectionAnalyzer.cs
- MethodExpr.cs
- AssociationSet.cs
- XmlWrappingReader.cs
- FormViewInsertedEventArgs.cs
- XmlSchemaImporter.cs
- IODescriptionAttribute.cs
- StyleXamlParser.cs
- AssemblyCache.cs
- URLIdentityPermission.cs
- DragCompletedEventArgs.cs
- EncryptedKey.cs
- StateMachine.cs
- SafeProcessHandle.cs
- IndexerNameAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- SimplePropertyEntry.cs
- LinqDataSourceDisposeEventArgs.cs
- ContractInstanceProvider.cs
- ClosableStream.cs
- NativeMethodsCLR.cs
- Wizard.cs
- TableAutomationPeer.cs
- EditingCoordinator.cs
- AsymmetricSignatureFormatter.cs
- BrushValueSerializer.cs
- TableLayoutStyle.cs
- ActionFrame.cs
- ThemeInfoAttribute.cs
- SyndicationElementExtensionCollection.cs
- SapiRecoInterop.cs
- HeaderCollection.cs
- ObjectConverter.cs
- SystemIcons.cs
- DataConnectionHelper.cs
- ToolStripDropDownClosingEventArgs.cs
- Normalization.cs
- XsdCachingReader.cs
- HyperLink.cs
- PrimitiveType.cs
- Stacktrace.cs
- TaskFactory.cs
- ImageMetadata.cs
- CloudCollection.cs
- OperationAbortedException.cs
- XmlWriter.cs
- LongValidatorAttribute.cs
- XmlWriterTraceListener.cs
- WizardStepBase.cs
- ClientProxyGenerator.cs
- ConnectionManager.cs
- Int16AnimationBase.cs
- CodeDirectionExpression.cs
- SafeNativeMemoryHandle.cs
- WindowsGraphicsCacheManager.cs
- ResponseBodyWriter.cs
- EventKeyword.cs
- GeneralTransform3DGroup.cs
- FontFaceLayoutInfo.cs
- NumberSubstitution.cs
- storepermissionattribute.cs
- OutputScopeManager.cs
- TransformerConfigurationWizardBase.cs
- WindowsToolbarAsMenu.cs
- DataGridRowClipboardEventArgs.cs
- ServiceOperationUIEditor.cs
- __ComObject.cs
- FormViewDeleteEventArgs.cs
- DataSourceControl.cs
- SQLBinaryStorage.cs
- CompiledQueryCacheKey.cs
- VariantWrapper.cs
- SRef.cs
- XmlILIndex.cs
- SelectorAutomationPeer.cs
- XmlSerializerAssemblyAttribute.cs
- FontUnitConverter.cs
- MatrixTransform3D.cs
- RelationshipEntry.cs
- ServiceObjectContainer.cs
- ClassHandlersStore.cs
- BitmapMetadata.cs
- EventMap.cs
- SetterBase.cs
- XmlWriterTraceListener.cs
- PasswordDeriveBytes.cs
- SingletonConnectionReader.cs
- Unit.cs
- CustomError.cs
- HttpModuleCollection.cs
- RequestCache.cs
- CommandEventArgs.cs
- IntegerValidator.cs
- DataColumn.cs
- ValidateNames.cs
- StringDictionary.cs
- SymmetricKeyWrap.cs