Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TemplatedAdorner.cs
- BevelBitmapEffect.cs
- SafeRsaProviderHandle.cs
- ColumnWidthChangingEvent.cs
- GeneralTransform3DTo2DTo3D.cs
- AutoCompleteStringCollection.cs
- GridEntryCollection.cs
- ZipIOLocalFileDataDescriptor.cs
- ExpressionTextBox.xaml.cs
- GZipDecoder.cs
- ToolStripLocationCancelEventArgs.cs
- WCFBuildProvider.cs
- SHA256Managed.cs
- DbConnectionPoolCounters.cs
- KeysConverter.cs
- TransformerTypeCollection.cs
- ToolStrip.cs
- DataError.cs
- QilFunction.cs
- ObjectQueryExecutionPlan.cs
- Quad.cs
- ProfileProvider.cs
- TextTreeInsertElementUndoUnit.cs
- Attachment.cs
- SQLString.cs
- TransformPatternIdentifiers.cs
- StyleModeStack.cs
- SignatureResourcePool.cs
- ZipIORawDataFileBlock.cs
- HelpEvent.cs
- CompilationSection.cs
- ExpressionEditorAttribute.cs
- BreakRecordTable.cs
- OSFeature.cs
- MonthCalendar.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- TypeNameConverter.cs
- BmpBitmapEncoder.cs
- DbConnectionHelper.cs
- MessageBox.cs
- XsltCompileContext.cs
- SmtpLoginAuthenticationModule.cs
- PhonemeEventArgs.cs
- ButtonFlatAdapter.cs
- EntitySqlQueryBuilder.cs
- HiddenField.cs
- CachedTypeface.cs
- SimpleBitVector32.cs
- TimeSpanFormat.cs
- ViewCellRelation.cs
- TextTrailingWordEllipsis.cs
- DeploymentSection.cs
- XmlILConstructAnalyzer.cs
- IxmlLineInfo.cs
- QueryConverter.cs
- TextTreeTextElementNode.cs
- DataGridViewCellFormattingEventArgs.cs
- DispatcherObject.cs
- CompositeFontParser.cs
- SudsCommon.cs
- _SslStream.cs
- dsa.cs
- COM2ExtendedUITypeEditor.cs
- XmlSchemaInclude.cs
- ToolBarTray.cs
- TheQuery.cs
- DesignTimeParseData.cs
- ApplicationHost.cs
- ReadWriteControlDesigner.cs
- ChineseLunisolarCalendar.cs
- ProtocolsConfigurationHandler.cs
- NameGenerator.cs
- FilteredAttributeCollection.cs
- BindingListCollectionView.cs
- UserControlBuildProvider.cs
- CollectionView.cs
- ModelVisual3D.cs
- DataSourceGeneratorException.cs
- ReliableChannelListener.cs
- ConsumerConnectionPointCollection.cs
- GregorianCalendar.cs
- NamespaceListProperty.cs
- TemplateBaseAction.cs
- DbBuffer.cs
- CodeMemberMethod.cs
- ProgressBarAutomationPeer.cs
- AsnEncodedData.cs
- HttpApplication.cs
- AdornedElementPlaceholder.cs
- TableLayoutSettingsTypeConverter.cs
- DesignerDataColumn.cs
- DataIdProcessor.cs
- FileVersion.cs
- ScriptReferenceEventArgs.cs
- WriteableBitmap.cs
- TextBoxAutoCompleteSourceConverter.cs
- ToolBarPanel.cs
- QueryOpcode.cs
- ErrorHandlerModule.cs
- SystemIPInterfaceProperties.cs