Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / System / Linq / Parallel / Scheduling / QueryLifecycle.cs / 1305376 / QueryLifecycle.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // QueryLifecycle.cs // //[....] // // A convenient place to put things associated with entire queries and their lifecycle events. // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using System.Diagnostics.Contracts; namespace System.Linq.Parallel { internal static class QueryLifecycle { // This method is called once per execution of a logical query. // (It is not called multiple time if repartitionings occur) internal static void LogicalQueryExecutionBegin(int queryID) { //We call NOCTD to inform the debugger that multiple threads will most likely be required to //execute this query. We do not attempt to run the query even if we think we could, for simplicity and consistency. #if !PFX_LEGACY_3_5 Debugger.NotifyOfCrossThreadDependency(); #endif #if !FEATURE_PAL // PAL doesn't support eventing PlinqEtwProvider.Log.ParallelQueryBegin(queryID); #endif } // This method is called once per execution of a logical query. // (It is not called multiple time if repartitionings occur) internal static void LogicalQueryExecutionEnd(int queryID) { #if !FEATURE_PAL // PAL doesn't support eventing PlinqEtwProvider.Log.ParallelQueryEnd(queryID); #endif } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // QueryLifecycle.cs // //[....] // // A convenient place to put things associated with entire queries and their lifecycle events. // // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using System.Diagnostics.Contracts; namespace System.Linq.Parallel { internal static class QueryLifecycle { // This method is called once per execution of a logical query. // (It is not called multiple time if repartitionings occur) internal static void LogicalQueryExecutionBegin(int queryID) { //We call NOCTD to inform the debugger that multiple threads will most likely be required to //execute this query. We do not attempt to run the query even if we think we could, for simplicity and consistency. #if !PFX_LEGACY_3_5 Debugger.NotifyOfCrossThreadDependency(); #endif #if !FEATURE_PAL // PAL doesn't support eventing PlinqEtwProvider.Log.ParallelQueryBegin(queryID); #endif } // This method is called once per execution of a logical query. // (It is not called multiple time if repartitionings occur) internal static void LogicalQueryExecutionEnd(int queryID) { #if !FEATURE_PAL // PAL doesn't support eventing PlinqEtwProvider.Log.ParallelQueryEnd(queryID); #endif } } } // 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
- BidOverLoads.cs
- SqlConnectionFactory.cs
- ParsedAttributeCollection.cs
- Span.cs
- ExtendedProperty.cs
- BindValidationContext.cs
- BidPrivateBase.cs
- Label.cs
- ReaderWriterLockWrapper.cs
- DataGridSortCommandEventArgs.cs
- TypeElementCollection.cs
- WebBrowserEvent.cs
- DataServiceRequestArgs.cs
- DataGridViewToolTip.cs
- ResourceExpression.cs
- SoapIncludeAttribute.cs
- NativeActivityContext.cs
- HtmlListAdapter.cs
- UnsafeNativeMethods.cs
- AsyncOperationManager.cs
- WinInet.cs
- PageBreakRecord.cs
- RegexRunner.cs
- TemplateParser.cs
- TextServicesLoader.cs
- InternalResources.cs
- StyleCollection.cs
- GridItemPattern.cs
- MorphHelpers.cs
- MediaSystem.cs
- StatusInfoItem.cs
- MemberPathMap.cs
- WebPartZoneCollection.cs
- autovalidator.cs
- ShaderEffect.cs
- FormParameter.cs
- ButtonChrome.cs
- RegistrationServices.cs
- EventLogHandle.cs
- IconConverter.cs
- OleDbConnectionFactory.cs
- EditorZoneBase.cs
- ClipboardProcessor.cs
- CompilerGeneratedAttribute.cs
- HtmlInputText.cs
- SpeechRecognizer.cs
- XmlSchemas.cs
- TypeUtil.cs
- BooleanAnimationUsingKeyFrames.cs
- MappedMetaModel.cs
- SQLStringStorage.cs
- XPathNode.cs
- OleCmdHelper.cs
- XmlUrlEditor.cs
- SecureStringHasher.cs
- SQLByte.cs
- DataGridBeginningEditEventArgs.cs
- iisPickupDirectory.cs
- GradientBrush.cs
- MissingMemberException.cs
- ExternalException.cs
- EntityConnectionStringBuilder.cs
- ModelTypeConverter.cs
- PageRequestManager.cs
- ApplicationDirectoryMembershipCondition.cs
- _emptywebproxy.cs
- TextContainerHelper.cs
- DataGridTableCollection.cs
- ManagementException.cs
- ScriptControlManager.cs
- ContextTokenTypeConverter.cs
- ProfileService.cs
- EncryptedKeyHashIdentifierClause.cs
- AttachedPropertyMethodSelector.cs
- ProfileManager.cs
- FileRecordSequence.cs
- X509UI.cs
- SendSecurityHeader.cs
- UriTemplateClientFormatter.cs
- RuleInfoComparer.cs
- ApplicationManager.cs
- RemotingServices.cs
- RuntimeConfig.cs
- CodeTypeConstructor.cs
- ConnectionStringSettings.cs
- C14NUtil.cs
- WebPartConnectVerb.cs
- ScopeElement.cs
- SatelliteContractVersionAttribute.cs
- CodeMemberField.cs
- XamlVector3DCollectionSerializer.cs
- AnnouncementInnerClientCD1.cs
- NonSerializedAttribute.cs
- ChannelHandler.cs
- HtmlElementEventArgs.cs
- PersonalizationStateInfoCollection.cs
- SHA256.cs
- Matrix.cs
- AppDomainFactory.cs
- AccessKeyManager.cs