Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntitySqlQueryCacheKey.cs
- DNS.cs
- TakeQueryOptionExpression.cs
- IPGlobalProperties.cs
- PageBuildProvider.cs
- WebPartCatalogCloseVerb.cs
- DesignerVerbCollection.cs
- x509utils.cs
- RootBrowserWindowAutomationPeer.cs
- RegionData.cs
- ProcessExitedException.cs
- Point.cs
- TemplateNameScope.cs
- FtpRequestCacheValidator.cs
- CancelEventArgs.cs
- DecimalConverter.cs
- LinkButton.cs
- ToolStripRendererSwitcher.cs
- OptimizedTemplateContentHelper.cs
- CompilerScopeManager.cs
- CodeVariableDeclarationStatement.cs
- XmlSchemaSet.cs
- ListViewInsertionMark.cs
- SerializationInfo.cs
- SourceFileBuildProvider.cs
- WebBrowserBase.cs
- NameTable.cs
- HideDisabledControlAdapter.cs
- ObjectDataSourceStatusEventArgs.cs
- Perspective.cs
- ScrollChrome.cs
- OletxCommittableTransaction.cs
- TextPatternIdentifiers.cs
- PropertyValueEditor.cs
- ObjectMemberMapping.cs
- InheritanceUI.cs
- EnumBuilder.cs
- InfoCardSymmetricAlgorithm.cs
- ArrayTypeMismatchException.cs
- NotifyCollectionChangedEventArgs.cs
- XPathParser.cs
- CompilerTypeWithParams.cs
- TypeLibConverter.cs
- SafeArrayTypeMismatchException.cs
- StructureChangedEventArgs.cs
- CatalogPartCollection.cs
- ContentType.cs
- CachedCompositeFamily.cs
- ExcludeFromCodeCoverageAttribute.cs
- HashJoinQueryOperatorEnumerator.cs
- RegexCode.cs
- Vector3DCollection.cs
- Events.cs
- HtmlAnchor.cs
- WebUtility.cs
- MsmqIntegrationBinding.cs
- QueuePathEditor.cs
- UnsafeNativeMethods.cs
- DateTimePicker.cs
- SharedHttpsTransportManager.cs
- UnicodeEncoding.cs
- DataViewSettingCollection.cs
- ListItem.cs
- HashAlgorithm.cs
- CodeGotoStatement.cs
- ClientConfigPaths.cs
- _HTTPDateParse.cs
- RightsManagementEncryptedStream.cs
- DataGridPagerStyle.cs
- DataGridViewComponentPropertyGridSite.cs
- BufferedWebEventProvider.cs
- DataBinding.cs
- DbModificationCommandTree.cs
- QueryCacheKey.cs
- SqlProcedureAttribute.cs
- ToolStrip.cs
- Journaling.cs
- AncillaryOps.cs
- CompositeDataBoundControl.cs
- WebControlsSection.cs
- UmAlQuraCalendar.cs
- InterleavedZipPartStream.cs
- LoginView.cs
- DocumentPageHost.cs
- IBuiltInEvidence.cs
- DateTimeOffsetStorage.cs
- DesignerCalendarAdapter.cs
- HMACSHA512.cs
- ValueConversionAttribute.cs
- TextureBrush.cs
- TextContainerChangeEventArgs.cs
- translator.cs
- OdbcEnvironmentHandle.cs
- GridViewItemAutomationPeer.cs
- __ComObject.cs
- XmlSchemaProviderAttribute.cs
- SafeNativeMemoryHandle.cs
- MessageQueuePermissionEntryCollection.cs
- LambdaCompiler.Generated.cs
- XPathNodeInfoAtom.cs