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
- DateTimeConverter2.cs
- HtmlInputSubmit.cs
- FileDataSourceCache.cs
- BooleanSwitch.cs
- BasicViewGenerator.cs
- MaskedTextProvider.cs
- MaterializeFromAtom.cs
- RowToParametersTransformer.cs
- BinaryObjectInfo.cs
- WpfWebRequestHelper.cs
- CombinedGeometry.cs
- documentsequencetextcontainer.cs
- PageBreakRecord.cs
- AutomationProperties.cs
- ObjectDisposedException.cs
- KnowledgeBase.cs
- CompilationPass2TaskInternal.cs
- ImageKeyConverter.cs
- LogEntrySerializer.cs
- ToggleButtonAutomationPeer.cs
- OrthographicCamera.cs
- ExclusiveTcpListener.cs
- MetadataPropertyCollection.cs
- UrlAuthorizationModule.cs
- TextElementEditingBehaviorAttribute.cs
- BaseTemplateParser.cs
- BinaryConverter.cs
- StyleSelector.cs
- mediapermission.cs
- RedistVersionInfo.cs
- NotifyParentPropertyAttribute.cs
- ScrollProperties.cs
- InkSerializer.cs
- CacheChildrenQuery.cs
- TrackBarDesigner.cs
- WebPartConnectionsCloseVerb.cs
- RecognizerInfo.cs
- Repeater.cs
- InvalidateEvent.cs
- InputProcessorProfiles.cs
- ModifiableIteratorCollection.cs
- DatatypeImplementation.cs
- ProcessInfo.cs
- ContentPlaceHolder.cs
- XmlWrappingWriter.cs
- DataGridViewBand.cs
- FunctionNode.cs
- CssTextWriter.cs
- PersistChildrenAttribute.cs
- Dispatcher.cs
- EnumerationRangeValidationUtil.cs
- XmlTextEncoder.cs
- HwndHostAutomationPeer.cs
- Parallel.cs
- AdvancedBindingPropertyDescriptor.cs
- DependencyObject.cs
- HierarchicalDataBoundControl.cs
- DeviceFiltersSection.cs
- AssemblyAssociatedContentFileAttribute.cs
- WrappedIUnknown.cs
- HttpResponseInternalWrapper.cs
- IdentityNotMappedException.cs
- CorrelationTokenTypeConvertor.cs
- SiteOfOriginContainer.cs
- ClientUrlResolverWrapper.cs
- AccessViolationException.cs
- Rethrow.cs
- SerializationTrace.cs
- TextFormatterContext.cs
- ControlSerializer.cs
- TextEditorThreadLocalStore.cs
- CreateDataSourceDialog.cs
- FontStretch.cs
- AutomationProperty.cs
- ZoneMembershipCondition.cs
- PersonalizableTypeEntry.cs
- StructuralCache.cs
- HostedTransportConfigurationManager.cs
- MethodImplAttribute.cs
- ConditionCollection.cs
- VirtualPath.cs
- CapabilitiesSection.cs
- HtmlTable.cs
- ParameterToken.cs
- FormatterConverter.cs
- CommentEmitter.cs
- BindingMAnagerBase.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ImmutableCommunicationTimeouts.cs
- SmiEventStream.cs
- Stack.cs
- ByeMessageApril2005.cs
- OdbcRowUpdatingEvent.cs
- InkCanvas.cs
- UnsafeNativeMethods.cs
- IdentityReference.cs
- SpeakProgressEventArgs.cs
- StrokeSerializer.cs
- XmlILModule.cs
- WebPartHelpVerb.cs