Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MediaContext.cs
- PointHitTestParameters.cs
- FastEncoderWindow.cs
- StickyNoteAnnotations.cs
- CommentEmitter.cs
- MetafileHeaderEmf.cs
- XmlSchemaImporter.cs
- selecteditemcollection.cs
- DateTimeParse.cs
- Brush.cs
- _LocalDataStore.cs
- PnrpPermission.cs
- ObjectSet.cs
- QuerySettings.cs
- IntSecurity.cs
- CssClassPropertyAttribute.cs
- DataGridViewComboBoxColumn.cs
- RowToParametersTransformer.cs
- ListViewGroupConverter.cs
- PanelDesigner.cs
- NamedPermissionSet.cs
- StringComparer.cs
- PasswordRecovery.cs
- BookmarkScopeHandle.cs
- ServerIdentity.cs
- TimersDescriptionAttribute.cs
- TripleDESCryptoServiceProvider.cs
- TypeUtils.cs
- ExpressionPrinter.cs
- SqlAggregateChecker.cs
- RowToParametersTransformer.cs
- ViewGenResults.cs
- ImageSource.cs
- TimeSpanOrInfiniteConverter.cs
- RelationshipConverter.cs
- DataGridViewCellCancelEventArgs.cs
- HttpRuntimeSection.cs
- ArcSegment.cs
- XmlDataSource.cs
- X509Extension.cs
- ContentWrapperAttribute.cs
- GcSettings.cs
- DocumentNUp.cs
- FileNameEditor.cs
- NativeCppClassAttribute.cs
- CryptoHandle.cs
- SHA384.cs
- HtmlUtf8RawTextWriter.cs
- XmlTypeAttribute.cs
- WindowsAuthenticationEventArgs.cs
- LabelLiteral.cs
- Matrix.cs
- SmiConnection.cs
- XamlParser.cs
- MarkupObject.cs
- RandomDelaySendsAsyncResult.cs
- ListControlBoundActionList.cs
- CryptoHandle.cs
- SimpleHandlerFactory.cs
- ToolbarAUtomationPeer.cs
- SSmlParser.cs
- PriorityItem.cs
- CommentEmitter.cs
- ScrollViewer.cs
- CodeMethodInvokeExpression.cs
- SHA1Managed.cs
- XPathItem.cs
- StrokeCollection.cs
- DataGridAddNewRow.cs
- HtmlInputSubmit.cs
- SafeReversePInvokeHandle.cs
- ManifestResourceInfo.cs
- TextEditorThreadLocalStore.cs
- ManagementExtension.cs
- ContractTypeNameCollection.cs
- SamlAssertion.cs
- SweepDirectionValidation.cs
- SqlCacheDependencySection.cs
- RecordManager.cs
- AlphabetConverter.cs
- TransactionBridgeSection.cs
- MD5CryptoServiceProvider.cs
- BrowserTree.cs
- StrokeCollectionConverter.cs
- ToolStripPanelCell.cs
- UrlParameterWriter.cs
- EntityContainerEmitter.cs
- CompilerWrapper.cs
- DllNotFoundException.cs
- PropertyToken.cs
- Calendar.cs
- Socket.cs
- BufferedGraphics.cs
- AspNetHostingPermission.cs
- ISAPIApplicationHost.cs
- InheritablePropertyChangeInfo.cs
- DLinqColumnProvider.cs
- DesignerTransaction.cs
- ContourSegment.cs
- SqlDataReaderSmi.cs