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
- HtmlInputPassword.cs
- FontStretches.cs
- DesignerCategoryAttribute.cs
- RegexWorker.cs
- DataRecord.cs
- ListBoxDesigner.cs
- UrlPath.cs
- OrthographicCamera.cs
- InfoCardMetadataExchangeClient.cs
- ExpressionPrinter.cs
- InvalidCommandTreeException.cs
- Int32Storage.cs
- ScriptResourceInfo.cs
- QilSortKey.cs
- JsonReaderDelegator.cs
- ECDiffieHellman.cs
- XPathQilFactory.cs
- AttachedPropertyDescriptor.cs
- NamespaceMapping.cs
- DataServiceKeyAttribute.cs
- VirtualDirectoryMappingCollection.cs
- ControllableStoryboardAction.cs
- tabpagecollectioneditor.cs
- ColumnHeader.cs
- TextSpan.cs
- TypePresenter.xaml.cs
- SQLInt32Storage.cs
- Clause.cs
- LabelLiteral.cs
- HttpDebugHandler.cs
- BamlTreeNode.cs
- NavigationProgressEventArgs.cs
- baseaxisquery.cs
- EUCJPEncoding.cs
- __TransparentProxy.cs
- AbandonedMutexException.cs
- DataGridViewHitTestInfo.cs
- ParenthesizePropertyNameAttribute.cs
- MetafileHeaderWmf.cs
- EdmToObjectNamespaceMap.cs
- AsyncOperationContext.cs
- StaticResourceExtension.cs
- HiddenField.cs
- RtfToXamlReader.cs
- SchemaComplexType.cs
- JsonEncodingStreamWrapper.cs
- Vars.cs
- QilPatternFactory.cs
- XsltException.cs
- EventMetadata.cs
- XmlAttributeCache.cs
- ToolStrip.cs
- BaseResourcesBuildProvider.cs
- WorkflowTransactionOptions.cs
- DataViewSettingCollection.cs
- ManifestBasedResourceGroveler.cs
- TextDecorationUnitValidation.cs
- MinimizableAttributeTypeConverter.cs
- IfAction.cs
- TrackingLocation.cs
- DataListItemEventArgs.cs
- VectorCollectionConverter.cs
- SeverityFilter.cs
- ListViewItemEventArgs.cs
- ECDiffieHellmanPublicKey.cs
- WeakHashtable.cs
- ScrollChangedEventArgs.cs
- WeakReferenceEnumerator.cs
- NeutralResourcesLanguageAttribute.cs
- HttpEncoder.cs
- webbrowsersite.cs
- XPathNodeInfoAtom.cs
- PasswordRecovery.cs
- MethodAccessException.cs
- SoapRpcMethodAttribute.cs
- SchemaTableOptionalColumn.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- EventListener.cs
- SelectionChangedEventArgs.cs
- XmlnsDictionary.cs
- BinaryFormatterWriter.cs
- CodeDOMProvider.cs
- PictureBox.cs
- DirectoryInfo.cs
- GroupBoxAutomationPeer.cs
- securestring.cs
- SqlGatherConsumedAliases.cs
- TableItemPatternIdentifiers.cs
- MachineKeySection.cs
- XPathParser.cs
- QilLoop.cs
- ThreadInterruptedException.cs
- DynamicQueryableWrapper.cs
- MatrixValueSerializer.cs
- documentsequencetextpointer.cs
- DataGridViewImageColumn.cs
- HitTestParameters3D.cs
- DatagramAdapter.cs
- userdatakeys.cs
- DependencyPropertyKey.cs