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
- WebZone.cs
- SHA384Managed.cs
- XmlAttributeHolder.cs
- AttachmentService.cs
- StringInfo.cs
- EpmSourcePathSegment.cs
- CursorInteropHelper.cs
- Selection.cs
- Privilege.cs
- OutputCacheProfileCollection.cs
- GridItemPattern.cs
- Mappings.cs
- RotateTransform3D.cs
- linebase.cs
- WindowsTab.cs
- OciLobLocator.cs
- BaseDataBoundControl.cs
- RuntimeHelpers.cs
- FormsAuthentication.cs
- StaticExtension.cs
- SelectedGridItemChangedEvent.cs
- EmissiveMaterial.cs
- BlockingCollection.cs
- WhitespaceRuleLookup.cs
- bindurihelper.cs
- GeometryGroup.cs
- DataGridTextBoxColumn.cs
- UInt16.cs
- OleDbEnumerator.cs
- TextTreeFixupNode.cs
- IpcChannelHelper.cs
- EventTask.cs
- UnknownWrapper.cs
- NumberFunctions.cs
- KerberosSecurityTokenAuthenticator.cs
- BitmapVisualManager.cs
- WindowShowOrOpenTracker.cs
- FieldDescriptor.cs
- XmlSchemaAttributeGroup.cs
- IssuedSecurityTokenProvider.cs
- AttributeProviderAttribute.cs
- FontCacheLogic.cs
- XmlWrappingWriter.cs
- SyndicationSerializer.cs
- IncrementalHitTester.cs
- OrderedDictionary.cs
- SoapExtensionTypeElementCollection.cs
- ClrProviderManifest.cs
- ScrollChangedEventArgs.cs
- TextBox.cs
- BamlRecords.cs
- MemoryStream.cs
- DataGridViewComboBoxEditingControl.cs
- EntityWithKeyStrategy.cs
- PreviewPageInfo.cs
- InheritanceContextHelper.cs
- OleDbParameter.cs
- TdsParserStateObject.cs
- DataSvcMapFileSerializer.cs
- ServiceCredentialsSecurityTokenManager.cs
- DivideByZeroException.cs
- DesignerSerializerAttribute.cs
- TrustManagerMoreInformation.cs
- RuleProcessor.cs
- HeaderedItemsControl.cs
- x509store.cs
- PhonemeEventArgs.cs
- DbConnectionHelper.cs
- AdapterDictionary.cs
- OrderingExpression.cs
- TemplateEditingService.cs
- RequestQueue.cs
- Timer.cs
- DataGridItem.cs
- Frame.cs
- RemoteWebConfigurationHost.cs
- CultureTableRecord.cs
- ProxyWebPartManagerDesigner.cs
- NullableIntMinMaxAggregationOperator.cs
- RelatedCurrencyManager.cs
- Size3D.cs
- Wildcard.cs
- InOutArgument.cs
- TdsRecordBufferSetter.cs
- QueuePathEditor.cs
- TextEncodedRawTextWriter.cs
- _CacheStreams.cs
- RadialGradientBrush.cs
- UpDownEvent.cs
- ConfigurationLocationCollection.cs
- Clause.cs
- Transform.cs
- XmlSchemaInferenceException.cs
- StandardToolWindows.cs
- FormattedTextSymbols.cs
- Point3D.cs
- XPathNodePointer.cs
- Quad.cs
- BindingCompleteEventArgs.cs
- GeometryHitTestParameters.cs