Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextElementCollectionHelper.cs
- TypeForwardedToAttribute.cs
- RSAOAEPKeyExchangeDeformatter.cs
- GeneralTransform3DGroup.cs
- EdmItemCollection.cs
- XPathDescendantIterator.cs
- RangeValueProviderWrapper.cs
- XpsFilter.cs
- RepeatButton.cs
- ContainerUtilities.cs
- DataGridRow.cs
- AuthenticationModuleElement.cs
- InvalidCommandTreeException.cs
- WorkflowInstanceProvider.cs
- SafeCryptoKeyHandle.cs
- cookiecollection.cs
- BindMarkupExtensionSerializer.cs
- SqlHelper.cs
- SqlCharStream.cs
- XmlAnyElementAttribute.cs
- ToolStripLocationCancelEventArgs.cs
- Certificate.cs
- MD5.cs
- XmlNamespaceMappingCollection.cs
- ConnectionModeReader.cs
- QueryOperationResponseOfT.cs
- LogRestartAreaEnumerator.cs
- UnsafeNativeMethodsMilCoreApi.cs
- arclist.cs
- CompilerScope.Storage.cs
- XmlAttributeAttribute.cs
- SelectionWordBreaker.cs
- SqlCacheDependencySection.cs
- LayoutInformation.cs
- TransformGroup.cs
- XmlSchemaCollection.cs
- DesignerOptionService.cs
- IItemContainerGenerator.cs
- XappLauncher.cs
- AdjustableArrowCap.cs
- PatternMatcher.cs
- odbcmetadatacollectionnames.cs
- WeakEventTable.cs
- KeySpline.cs
- XmlSerializableServices.cs
- TimeSpanMinutesConverter.cs
- MatrixStack.cs
- SortExpressionBuilder.cs
- DataServiceBehavior.cs
- recordstatefactory.cs
- ActionItem.cs
- ErrorInfoXmlDocument.cs
- DecimalAnimationBase.cs
- HandlerFactoryCache.cs
- InvokeProviderWrapper.cs
- FrameworkName.cs
- TextRunCache.cs
- PathSegmentCollection.cs
- GlyphShapingProperties.cs
- FilteredDataSetHelper.cs
- Transform3D.cs
- AppDomainFactory.cs
- DataControlFieldsEditor.cs
- StringUtil.cs
- PropertyChangingEventArgs.cs
- TakeQueryOptionExpression.cs
- SqlMethodTransformer.cs
- PointAnimationClockResource.cs
- SspiNegotiationTokenProvider.cs
- MD5CryptoServiceProvider.cs
- DbCommandTree.cs
- HtmlTableCell.cs
- DashStyles.cs
- CqlErrorHelper.cs
- WinEventWrap.cs
- CompositeDuplexElement.cs
- LayoutInformation.cs
- D3DImage.cs
- AppSecurityManager.cs
- FeatureSupport.cs
- XmlSchemaAll.cs
- SqlDataReaderSmi.cs
- XmlSerializationReader.cs
- RepeaterItemCollection.cs
- MasterPageBuildProvider.cs
- Compiler.cs
- ReferenceEqualityComparer.cs
- HiddenFieldPageStatePersister.cs
- DataDocumentXPathNavigator.cs
- ExpressionBindings.cs
- ReversePositionQuery.cs
- XmlDataContract.cs
- MetadataImporter.cs
- DefinitionBase.cs
- XmlUtf8RawTextWriter.cs
- SafeFindHandle.cs
- AuthenticationException.cs
- PageFunction.cs
- DBCommand.cs
- TextAdaptor.cs