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
- PageThemeCodeDomTreeGenerator.cs
- SAPICategories.cs
- SoundPlayer.cs
- WhitespaceRule.cs
- ZipIORawDataFileBlock.cs
- XhtmlBasicValidatorAdapter.cs
- InitializerFacet.cs
- XmlTextAttribute.cs
- CheckBoxDesigner.cs
- WindowsScrollBar.cs
- FormsAuthenticationConfiguration.cs
- FlowLayoutSettings.cs
- FontDialog.cs
- ToolStripDropDownClosingEventArgs.cs
- QuaternionRotation3D.cs
- ViewBase.cs
- HighlightComponent.cs
- CachedPathData.cs
- ConstraintManager.cs
- XmlSerializerFaultFormatter.cs
- TypeSource.cs
- SelectionItemPattern.cs
- OLEDB_Enum.cs
- DesigntimeLicenseContext.cs
- BrowserCapabilitiesCompiler.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- CngProvider.cs
- IdentityNotMappedException.cs
- ItemTypeToolStripMenuItem.cs
- LookupBindingPropertiesAttribute.cs
- HttpRuntimeSection.cs
- ObjectStateFormatter.cs
- XsltContext.cs
- _NTAuthentication.cs
- XmlSchemaElement.cs
- EventData.cs
- Style.cs
- CapabilitiesState.cs
- Crypto.cs
- ZoneMembershipCondition.cs
- EntityType.cs
- PropertyNames.cs
- ParameterBuilder.cs
- XmlSchemaSequence.cs
- NameValueConfigurationElement.cs
- DbConnectionPool.cs
- BitmapPalettes.cs
- PropertyEntry.cs
- CategoryGridEntry.cs
- RepeatButtonAutomationPeer.cs
- Perspective.cs
- SymbolMethod.cs
- WsatServiceCertificate.cs
- DataServiceQueryException.cs
- IndexedGlyphRun.cs
- BitmapEffectDrawingContextState.cs
- NativeMethods.cs
- DBSchemaTable.cs
- EditorZoneBase.cs
- ProtectedProviderSettings.cs
- EndpointAddress10.cs
- MD5CryptoServiceProvider.cs
- SmtpNetworkElement.cs
- IntersectQueryOperator.cs
- DateTimeFormatInfoScanner.cs
- DetailsView.cs
- ProxyManager.cs
- Int16KeyFrameCollection.cs
- BitmapData.cs
- EntityDataSourceDesigner.cs
- ManifestSignatureInformation.cs
- LineVisual.cs
- WindowsAuthenticationModule.cs
- PublisherMembershipCondition.cs
- SqlProvider.cs
- WebControlAdapter.cs
- SmiEventSink_DeferedProcessing.cs
- DoubleAnimationUsingKeyFrames.cs
- SystemInfo.cs
- MessageSecurityTokenVersion.cs
- UidManager.cs
- FieldNameLookup.cs
- PropertyIdentifier.cs
- Document.cs
- RepeaterItemCollection.cs
- XmlKeywords.cs
- EncoderFallback.cs
- AutomationIdentifierGuids.cs
- RequestQueue.cs
- StringDictionaryWithComparer.cs
- TextElementEnumerator.cs
- SystemColors.cs
- RSAOAEPKeyExchangeDeformatter.cs
- StreamGeometryContext.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- HttpContext.cs
- EventData.cs
- CodeIdentifier.cs
- ColumnResizeAdorner.cs
- HttpInputStream.cs