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
- UnsafeNativeMethods.cs
- IfJoinedCondition.cs
- SequentialOutput.cs
- EntityUtil.cs
- ErrorWrapper.cs
- ItemAutomationPeer.cs
- Image.cs
- Span.cs
- ToolStripStatusLabel.cs
- CellConstant.cs
- ListDictionaryInternal.cs
- RepeatBehavior.cs
- IsolatedStoragePermission.cs
- CodeExpressionCollection.cs
- TypeBuilderInstantiation.cs
- IPeerNeighbor.cs
- InstanceOwner.cs
- DetailsViewUpdateEventArgs.cs
- ProgressBar.cs
- AddInActivator.cs
- DataGridItem.cs
- WebUtility.cs
- SHA256Managed.cs
- ErrorBehavior.cs
- DataServices.cs
- HyperLinkField.cs
- AutoGeneratedFieldProperties.cs
- PackWebResponse.cs
- CmsUtils.cs
- Collection.cs
- RegistryKey.cs
- Accessible.cs
- RemoteHelper.cs
- ConnectionDemuxer.cs
- MdiWindowListStrip.cs
- GZipUtils.cs
- WebHttpBindingElement.cs
- WebBrowserSiteBase.cs
- RenderOptions.cs
- OdbcConnectionPoolProviderInfo.cs
- MatchingStyle.cs
- TreeSet.cs
- CommonXSendMessage.cs
- PropertyTab.cs
- XmlTextAttribute.cs
- AutoGeneratedField.cs
- TripleDES.cs
- metrodevice.cs
- CodeEntryPointMethod.cs
- DecoderReplacementFallback.cs
- VirtualDirectoryMapping.cs
- GACMembershipCondition.cs
- ContextStack.cs
- SqlTriggerContext.cs
- EntityException.cs
- NativeMethods.cs
- CancellableEnumerable.cs
- MessageQueueAccessControlEntry.cs
- MetricEntry.cs
- Content.cs
- DataSourceView.cs
- MetadataItem.cs
- ShaderEffect.cs
- Style.cs
- QilStrConcatenator.cs
- WindowsClaimSet.cs
- DataGridViewHeaderCell.cs
- WebPartTracker.cs
- dataprotectionpermissionattribute.cs
- ListBoxItemAutomationPeer.cs
- ConnectionOrientedTransportManager.cs
- TableColumn.cs
- PageCatalogPart.cs
- WorkflowFormatterBehavior.cs
- RawStylusSystemGestureInputReport.cs
- SourceLocation.cs
- XmlSchemaRedefine.cs
- CompressStream.cs
- JsonByteArrayDataContract.cs
- ResourceDescriptionAttribute.cs
- WpfXamlLoader.cs
- SizeAnimationUsingKeyFrames.cs
- configsystem.cs
- TextEmbeddedObject.cs
- PriorityQueue.cs
- DataBindingHandlerAttribute.cs
- XsltLibrary.cs
- BufferAllocator.cs
- metadatamappinghashervisitor.cs
- ArrayWithOffset.cs
- ValidatingCollection.cs
- StructuredTypeEmitter.cs
- DemultiplexingClientMessageFormatter.cs
- QueueProcessor.cs
- WpfSharedBamlSchemaContext.cs
- PropertyTabChangedEvent.cs
- DesignerForm.cs
- CustomError.cs
- CorrelationManager.cs
- DatatypeImplementation.cs