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
- LogStore.cs
- ThemeableAttribute.cs
- OleDbConnectionFactory.cs
- TextEffectResolver.cs
- RotateTransform.cs
- ProjectedSlot.cs
- ServiceOperationParameter.cs
- ConsumerConnectionPointCollection.cs
- RecordConverter.cs
- Button.cs
- HttpConfigurationContext.cs
- ipaddressinformationcollection.cs
- ETagAttribute.cs
- ModelTreeEnumerator.cs
- ResourceExpression.cs
- RuleSet.cs
- ConfigXmlText.cs
- BorderSidesEditor.cs
- NopReturnReader.cs
- EffectiveValueEntry.cs
- SlotInfo.cs
- DesignerUtils.cs
- ADMembershipUser.cs
- TriggerCollection.cs
- SqlSelectStatement.cs
- StorageRoot.cs
- FixedTextBuilder.cs
- Compiler.cs
- LoginCancelEventArgs.cs
- Emitter.cs
- BindingWorker.cs
- UTF8Encoding.cs
- Annotation.cs
- PropertyCondition.cs
- SelectionItemPattern.cs
- SafeArrayTypeMismatchException.cs
- CultureMapper.cs
- ThreadAbortException.cs
- InheritanceContextHelper.cs
- SqlProviderServices.cs
- ResizingMessageFilter.cs
- HtmlInputButton.cs
- CertificateReferenceElement.cs
- SqlTriggerAttribute.cs
- RemotingServices.cs
- OleDbCommand.cs
- IdentityManager.cs
- FunctionOverloadResolver.cs
- Logging.cs
- ToolStripActionList.cs
- IntegrationExceptionEventArgs.cs
- XmlCompatibilityReader.cs
- IPPacketInformation.cs
- CancellationHandlerDesigner.cs
- ValueExpressions.cs
- ToolStripItemCollection.cs
- PngBitmapDecoder.cs
- SystemTcpConnection.cs
- CompilationSection.cs
- ServiceChannel.cs
- WebPartManagerDesigner.cs
- CharKeyFrameCollection.cs
- UriParserTemplates.cs
- HebrewCalendar.cs
- XAMLParseException.cs
- TextViewElement.cs
- invalidudtexception.cs
- OdbcConnection.cs
- WebPartDisplayMode.cs
- SpellerError.cs
- SafeRightsManagementPubHandle.cs
- DataSourceCache.cs
- OdbcEnvironmentHandle.cs
- ObjectDataSourceChooseMethodsPanel.cs
- RequestCacheEntry.cs
- GridViewAutomationPeer.cs
- ComplexBindingPropertiesAttribute.cs
- DropDownList.cs
- SingleResultAttribute.cs
- PropertyPathConverter.cs
- Exception.cs
- SqlRowUpdatingEvent.cs
- DeadLetterQueue.cs
- UiaCoreApi.cs
- TaiwanCalendar.cs
- TreeBuilder.cs
- EntityType.cs
- XmlIlGenerator.cs
- EventLogPermissionAttribute.cs
- CompressedStack.cs
- GridViewCommandEventArgs.cs
- EventToken.cs
- MetadataItem.cs
- ItemType.cs
- ValueProviderWrapper.cs
- RuntimeConfigLKG.cs
- MimeMapping.cs
- DbCommandDefinition.cs
- LOSFormatter.cs
- NeedSkipTokenVisitor.cs