Code:
/ FX-1434 / FX-1434 / 1.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
- LocalValueEnumerator.cs
- AggregateNode.cs
- WebPartTransformer.cs
- CheckBoxList.cs
- StylusButtonEventArgs.cs
- GridEntryCollection.cs
- Symbol.cs
- Operand.cs
- counter.cs
- XsdValidatingReader.cs
- MetadataArtifactLoaderResource.cs
- Point3DCollectionValueSerializer.cs
- SequentialUshortCollection.cs
- BitmapMetadataBlob.cs
- EmptyQuery.cs
- TransactionState.cs
- InstanceDataCollectionCollection.cs
- RequestCache.cs
- StandardBindingElement.cs
- CommandDesigner.cs
- OleDbMetaDataFactory.cs
- DataSet.cs
- BindingValueChangedEventArgs.cs
- SingleTagSectionHandler.cs
- ProcessInputEventArgs.cs
- CultureInfoConverter.cs
- PointAnimationBase.cs
- PasswordTextNavigator.cs
- TaiwanLunisolarCalendar.cs
- AsyncOperation.cs
- MessageEncodingBindingElementImporter.cs
- IntSecurity.cs
- DynamicValueConverter.cs
- ServiceBuildProvider.cs
- IdentityHolder.cs
- SessionEndingCancelEventArgs.cs
- ClientRolePrincipal.cs
- DataSpaceManager.cs
- DependencyPropertyConverter.cs
- HttpResponseMessageProperty.cs
- NetTcpSectionData.cs
- BitmapScalingModeValidation.cs
- XmlCharCheckingWriter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- BitmapImage.cs
- DataRelation.cs
- TextTreeTextNode.cs
- _UriTypeConverter.cs
- DataPagerFieldCollection.cs
- IFlowDocumentViewer.cs
- AbstractSvcMapFileLoader.cs
- FixedSOMPage.cs
- OleCmdHelper.cs
- EventSinkActivityDesigner.cs
- FormViewPagerRow.cs
- SerializationInfoEnumerator.cs
- CellParaClient.cs
- PathGradientBrush.cs
- EntityClientCacheEntry.cs
- ComponentChangedEvent.cs
- PrintPageEvent.cs
- SystemIPInterfaceProperties.cs
- TextViewElement.cs
- DoubleUtil.cs
- _NegoState.cs
- StreamWriter.cs
- HttpRequest.cs
- LayoutInformation.cs
- DateTimeParse.cs
- XmlUtil.cs
- GuidelineSet.cs
- NamespaceExpr.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- RpcCryptoRequest.cs
- IgnoreSection.cs
- AutomationEvent.cs
- ScriptControlManager.cs
- RayHitTestParameters.cs
- WebPartConnectionsDisconnectVerb.cs
- COM2IDispatchConverter.cs
- UpDownBase.cs
- XPathNode.cs
- Mapping.cs
- CalloutQueueItem.cs
- Image.cs
- AtomServiceDocumentSerializer.cs
- OleDbParameterCollection.cs
- QilNode.cs
- XmlSchemaObjectCollection.cs
- UrlPath.cs
- QueryResponse.cs
- SoapWriter.cs
- BindingExpression.cs
- ParserContext.cs
- HostExecutionContextManager.cs
- ColorMap.cs
- HybridCollection.cs
- TerminatorSinks.cs
- AssemblyHelper.cs
- Propagator.ExtentPlaceholderCreator.cs