Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Threading / AbandonedMutexException.cs / 1 / 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; } 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; } 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
- CapabilitiesRule.cs
- Process.cs
- SplineKeyFrames.cs
- HMACSHA1.cs
- FastEncoderWindow.cs
- ApplicationProxyInternal.cs
- RecordsAffectedEventArgs.cs
- PreservationFileReader.cs
- MetadataProperty.cs
- Error.cs
- XDeferredAxisSource.cs
- ReadOnlyDictionary.cs
- Win32KeyboardDevice.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- InternalEnumValidator.cs
- TrackingMemoryStreamFactory.cs
- PartitionedStreamMerger.cs
- AuthenticationException.cs
- SoapTransportImporter.cs
- DecoderNLS.cs
- MembershipSection.cs
- PropertyAccessVisitor.cs
- HttpPostClientProtocol.cs
- DataRowComparer.cs
- DoubleCollectionConverter.cs
- DataContractSerializerServiceBehavior.cs
- PolicyFactory.cs
- NamedPipeHostedTransportConfiguration.cs
- ObjectAnimationBase.cs
- X509Utils.cs
- PageCodeDomTreeGenerator.cs
- File.cs
- SafeArrayTypeMismatchException.cs
- Model3DGroup.cs
- MarshalByRefObject.cs
- BitmapSource.cs
- WorkflowTerminatedException.cs
- TargetConverter.cs
- BuildResultCache.cs
- DbConnectionPoolOptions.cs
- CollectionChangeEventArgs.cs
- BooleanExpr.cs
- Label.cs
- SqlErrorCollection.cs
- CngAlgorithm.cs
- WindowsAuthenticationModule.cs
- EnumCodeDomSerializer.cs
- CodeAssignStatement.cs
- CqlWriter.cs
- TypeEnumerableViewSchema.cs
- OleDbSchemaGuid.cs
- EmulateRecognizeCompletedEventArgs.cs
- SqlConnectionFactory.cs
- TdsParserSafeHandles.cs
- XPathQilFactory.cs
- RemoteWebConfigurationHostServer.cs
- Flattener.cs
- StandardBindingCollectionElement.cs
- GridViewUpdatedEventArgs.cs
- SoapCommonClasses.cs
- GeometryConverter.cs
- UIElement.cs
- KeyValueConfigurationElement.cs
- Module.cs
- SelectionItemPattern.cs
- TextCollapsingProperties.cs
- log.cs
- RequestCacheManager.cs
- Int64Converter.cs
- _DisconnectOverlappedAsyncResult.cs
- SoapAttributeOverrides.cs
- StringResourceManager.cs
- InstanceData.cs
- BitmapEffectInput.cs
- PrintDialogException.cs
- XmlFormatExtensionPointAttribute.cs
- WindowsToolbarAsMenu.cs
- StateElementCollection.cs
- ComNativeDescriptor.cs
- MobileControlsSectionHandler.cs
- DSACryptoServiceProvider.cs
- AQNBuilder.cs
- ConnectionStringSettingsCollection.cs
- ReaderWriterLock.cs
- ClassHandlersStore.cs
- DesignerSerializerAttribute.cs
- TraceHwndHost.cs
- SharedDp.cs
- SequenceNumber.cs
- Aes.cs
- DesignSurfaceEvent.cs
- BulletDecorator.cs
- WebMessageFormatHelper.cs
- TrustManager.cs
- GridLength.cs
- TextModifierScope.cs
- PageCache.cs
- CategoryState.cs
- CqlLexerHelpers.cs
- SingleAnimationUsingKeyFrames.cs