• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IThreadManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IThreadManager的典型用法代码示例。如果您正苦于以下问题:C# IThreadManager类的具体用法?C# IThreadManager怎么用?C# IThreadManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IThreadManager类属于命名空间,在下文中一共展示了IThreadManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: DynamicHierarchy

 /// <summary>
 /// Constructs a new dynamic hierarchy broad phase.
 /// </summary>
 /// <param name="threadManager">Thread manager to use in the broad phase.</param>
 public DynamicHierarchy(IThreadManager threadManager)
     : base(threadManager)
 {
     multithreadedRefit = MultithreadedRefit;
     multithreadedOverlap = MultithreadedOverlap;
     QueryAccelerator = new DynamicHierarchyQueryAccelerator(this);
 }
开发者ID:dsmo7206,项目名称:Lemma,代码行数:11,代码来源:DynamicHierarchy.cs


示例2: ContinuousPositionUpdater

 ///<summary>
 /// Constructs the position updater.
 ///</summary>
 ///<param name="timeStepSettings">Time step settings to use.</param>
 /// <param name="threadManager">Thread manager to use.</param>
 public ContinuousPositionUpdater(TimeStepSettings timeStepSettings, IThreadManager threadManager)
     : base(timeStepSettings, threadManager)
 {
     preUpdate = PreUpdate;
     updateTimeOfImpact = UpdateTimeOfImpact;
     updateContinuous = UpdateContinuousItem;
 }
开发者ID:arindamGithub,项目名称:Lemma,代码行数:12,代码来源:ContinuousPositionUpdater.cs


示例3: Space

        ///<summary>
        /// Constructs a new space for things to live in.
        ///</summary>
        ///<param name="threadManager">Thread manager to use with the space.</param>
        public Space(IThreadManager threadManager)
        {
            timeStepSettings = new TimeStepSettings();

            this.threadManager = threadManager;

            SpaceObjectBuffer = new SpaceObjectBuffer(this);
            EntityStateWriteBuffer = new EntityStateWriteBuffer();
            DeactivationManager = new DeactivationManager(TimeStepSettings, ThreadManager);
            ForceUpdater = new ForceUpdater(TimeStepSettings, ThreadManager);
            BoundingBoxUpdater = new BoundingBoxUpdater(TimeStepSettings, ThreadManager);
            BroadPhase = new DynamicHierarchy(ThreadManager);
            NarrowPhase = new NarrowPhase(TimeStepSettings, BroadPhase.Overlaps, ThreadManager);
            Solver = new Solver(TimeStepSettings, DeactivationManager, ThreadManager);
            NarrowPhase.Solver = Solver;
            PositionUpdater = new ContinuousPositionUpdater(TimeStepSettings, ThreadManager);
            BufferedStates = new BufferedStatesManager(ThreadManager);
            DeferredEventDispatcher = new DeferredEventDispatcher();

            DuringForcesUpdateables = new DuringForcesUpdateableManager(timeStepSettings, ThreadManager);
            BeforeNarrowPhaseUpdateables = new BeforeNarrowPhaseUpdateableManager(timeStepSettings, ThreadManager);
            BeforeSolverUpdateables = new BeforeSolverUpdateableManager(timeStepSettings, ThreadManager);
            BeforePositionUpdateUpdateables = new BeforePositionUpdateUpdateableManager(timeStepSettings, ThreadManager);
            EndOfTimeStepUpdateables = new EndOfTimeStepUpdateableManager(timeStepSettings, ThreadManager);
            EndOfFrameUpdateables = new EndOfFrameUpdateableManager(timeStepSettings, ThreadManager);
        }
开发者ID:kernelbitch,项目名称:Lemma,代码行数:30,代码来源:Space.cs


示例4: Grid2DSortAndSweep

 /// <summary>
 /// Constructs a grid-based sort and sweep broad phase.
 /// </summary>
 /// <param name="threadManager">Thread manager to use for the broad phase.</param>
 public Grid2DSortAndSweep(IThreadManager threadManager)
     :base(threadManager)
 {
     updateEntry = UpdateEntry;
     updateCell = UpdateCell;
     QueryAccelerator = new Grid2DSortAndSweepQueryAccelerator(this);
 }
开发者ID:Indiefreaks,项目名称:igf,代码行数:11,代码来源:Grid2DSortAndSweep.cs


示例5: BoundingBoxUpdater

        ///<summary>
        /// Constructs the bounding box updater.
        ///</summary>
        ///<param name="timeStepSettings">Time step setttings to be used by the updater.</param>
        /// <param name="threadManager">Thread manager to be used by the updater.</param>
        public BoundingBoxUpdater(TimeStepSettings timeStepSettings, IThreadManager threadManager)
            : this(timeStepSettings)
        {
            ThreadManager = threadManager;
            AllowMultithreading = true;

        }
开发者ID:rc183,项目名称:igf,代码行数:12,代码来源:BoundingBoxUpdater.cs


示例6: Server

 public Server(ILog log, Settings settings, IEndpointFactory endpointFactory, IThreadManager threadManager)
 {
     this.log = log;
     this.settings = settings;
     this.endpointFactory = endpointFactory;
     this.threadManager = threadManager;
 }
开发者ID:sumothecat,项目名称:Pushbaby,代码行数:7,代码来源:Server.cs


示例7: ToastPresenter

 /// <summary>
 /// Initializes a new instance of the <see cref="ToastPresenter"/> class.
 /// </summary>
 public ToastPresenter([NotNull] IThreadManager threadManager)
 {
     Should.NotBeNull(threadManager, "threadManager");
     _threadManager = threadManager;
     Background = Color.FromArgb(255, 105, 105, 105);
     Foreground = Color.FromArgb(255, 247, 247, 247);
 }
开发者ID:MuffPotter,项目名称:MugenMvvmToolkit,代码行数:10,代码来源:ToastPresenter.cs


示例8: UnmanagedBitmapRenderer

 /// <summary>
 /// Initializes a new instance of the <see cref="UnmanagedBitmapRenderer" /> class.
 /// </summary>
 /// <param name="threadManager">The thread manager.</param>
 /// <param name="dispatcher">The dispatcher.</param>
 public UnmanagedBitmapRenderer(IThreadManager threadManager, IDispatcher dispatcher)
     : base(threadManager)
 {
     threadManager.Guard("threadManager");
     dispatcher.Guard("dispatcher");
     this.dispatcher = dispatcher;
 }
开发者ID:Melamew,项目名称:iLynx.Common,代码行数:12,代码来源:UnmanagedBitmapRenderer.cs


示例9: Endpoint

 public Endpoint(ILog log, EndpointSettings settings, IFileSystem fileSystem, IListener listener, IHandlerFactory handlerFactory, IThreadManager threadManager)
 {
     this.log = log;
     this.settings = settings;
     this.fileSystem = fileSystem;
     this.listener = listener;
     this.handlerFactory = handlerFactory;
     this.threadManager = threadManager;
 }
开发者ID:sumothecat,项目名称:Pushbaby,代码行数:9,代码来源:Endpoint.cs


示例10: Handler

 public Handler(ILog log, EndpointSettings settings, ISessionStore sessionStore, IThreadManager threadManager, IContext context, IFileSystem fileSystem)
 {
     this.log = log;
     this.settings = settings;
     this.sessionStore = sessionStore;
     this.threadManager = threadManager;
     this.context = context;
     this.fileSystem = fileSystem;
 }
开发者ID:sumothecat,项目名称:Pushbaby,代码行数:9,代码来源:Handler.cs


示例11: NavigationService

 public NavigationService([NotNull] IThreadManager threadManager)
 {
     Should.NotBeNull(threadManager, "threadManager");
     _threadManager = threadManager;
     XamarinFormsExtensions.BackButtonPressed += ReflectionExtensions
         .CreateWeakDelegate<NavigationService, CancelEventArgs, EventHandler<Page, CancelEventArgs>>(this,
             (service, o, arg3) => service.OnBackButtonPressed((Page)o, arg3),
             (o, handler) => XamarinFormsExtensions.BackButtonPressed -= handler, handler => handler.Handle);
     UseAnimations = true;
 }
开发者ID:windygu,项目名称:MugenMvvmToolkit,代码行数:10,代码来源:NavigationService.cs


示例12: ViewManager

 public ViewManager([NotNull] IThreadManager threadManager,
     [NotNull] IViewMappingProvider viewMappingProvider, [NotNull] IWrapperManager wrapperManager)
 {
     Should.NotBeNull(threadManager, "threadManager");
     Should.NotBeNull(viewMappingProvider, "viewMappingProvider");
     Should.NotBeNull(viewMappingProvider, "wrapperManager");
     _threadManager = threadManager;
     _viewMappingProvider = viewMappingProvider;
     _wrapperManager = wrapperManager;
 }
开发者ID:sami1971,项目名称:MugenMvvmToolkit,代码行数:10,代码来源:ViewManager.cs


示例13: SetThreadManager

        public override void SetThreadManager(IThreadManager paramThreadManager)
        {
            // base.SetThreadManager first.
            base.SetThreadManager(paramThreadManager);

            // Now spin up callback thread
            List<Object> threadList = new List<Object>();
            threadList.Add(new KeyValuePair<String, Delegate>(CallbackThreadActionStrings.customAction1String, new VoidObjectDelegate(this.ExecuteCustomAction1)));
            threadList.Add(new KeyValuePair<String, Delegate>(CallbackThreadActionStrings.fullScreenString, new VoidVoidDelegate(this.ToggleFullScreen)));
            threadManager.StartCallbackThread(threadList);
        }
开发者ID:TomasCruz,项目名称:Monre,代码行数:11,代码来源:ApplicationForm.cs


示例14: PoliteWebCrawler

 public PoliteWebCrawler(
     CrawlConfiguration crawlConfiguration,
     ICrawlDecisionMaker crawlDecisionMaker,
     IThreadManager threadManager,
     IScheduler scheduler,
     IPageRequester pageRequester,
     IHyperLinkParser hyperLinkParser,
     IMemoryManager memoryManager,
     IDomainRateLimiter domainRateLimiter,
     IRobotsDotTextFinder robotsDotTextFinder)
     : base(crawlConfiguration, crawlDecisionMaker, threadManager, scheduler, pageRequester, hyperLinkParser, memoryManager)
 {
     _domainRateLimiter = domainRateLimiter ?? new DomainRateLimiter(_crawlContext.CrawlConfiguration.MinCrawlDelayPerDomainMilliSeconds);
     _robotsDotTextFinder = robotsDotTextFinder ?? new RobotsDotTextFinder(new PageRequester(_crawlContext.CrawlConfiguration));
 }
开发者ID:greenoaktree,项目名称:abot,代码行数:15,代码来源:PoliteWebCrawler.cs


示例15: CustomFluidVolume

        /// <summary>
        /// Creates a fluid volume.
        /// </summary>
        /// <param name="upVector">Up vector of the fluid volume.</param>
        /// <param name="gravity">Strength of gravity for the purposes of the fluid volume.</param>
        /// <param name="surfaceTriangles">List of triangles composing the surface of the fluid.  Set up as a list of length 3 arrays of Vector3's.</param>
        /// <param name="depth">Depth of the fluid back along the surface normal.</param>
        /// <param name="fluidDensity">Density of the fluid represented in the volume.</param>
        /// <param name="linearDamping">Fraction by which to reduce the linear momentum of floating objects each update, in addition to any of the body's own damping.</param>
        /// <param name="angularDamping">Fraction by which to reduce the angular momentum of floating objects each update, in addition to any of the body's own damping.</param>
        /// <param name="queryAccelerator">System to accelerate queries to find nearby entities.</param>
        /// <param name="threadManager">Thread manager used by the fluid volume.</param>
        public CustomFluidVolume(Vector3 upVector, float gravity, List<Vector3[]> surfaceTriangles, float depth, float fluidDensity, float linearDamping, float angularDamping,
			IQueryAccelerator queryAccelerator, IThreadManager threadManager)
        {
            Gravity = gravity;
            SurfaceTriangles = surfaceTriangles;
            MaxDepth = depth;
            Density = fluidDensity;
            LinearDamping = linearDamping;
            AngularDamping = angularDamping;

            UpVector = upVector;
            QueryAccelerator = queryAccelerator;
            ThreadManager = threadManager;

            analyzeCollisionEntryDelegate = AnalyzeCollisionEntry;
        }
开发者ID:kernelbitch,项目名称:Lemma,代码行数:28,代码来源:CustomFluidVolume.cs


示例16: MultiProxyPoliteWebCrawler

		public MultiProxyPoliteWebCrawler(
			MultiProxyCrawlConfiguration crawlConfiguration,
			ICrawlDecisionMaker crawlDecisionMaker,
			IThreadManager threadManager,
			IScheduler scheduler,
			IPageRequester pageRequester,
			IHyperLinkParser hyperLinkParser,
			IMemoryManager memoryManager,
			IMultiProxyDomainRateLimiter domainRateLimiter,
			IRobotsDotTextFinder robotsDotTextFinder)
            : base(crawlConfiguration, crawlDecisionMaker, threadManager, scheduler, pageRequester, hyperLinkParser, memoryManager)
        {
			if ((pageRequester as MultiProxyPageRequester) == null)
				_pageRequester = new MultiProxyPageRequester(crawlConfiguration);
			_domainRateLimiter = domainRateLimiter ?? new MultiProxyDomainRateLimiter(_crawlContext.CrawlConfiguration.MinCrawlDelayPerDomainMilliSeconds);
			_robotsDotTextFinder = robotsDotTextFinder ?? new RobotsDotTextFinder(_pageRequester);
		}
开发者ID:mng-au,项目名称:Abot.MultiProxyPoliteWebCrawler,代码行数:17,代码来源:MultiProxyPoliteWebCrawler.cs


示例17: PlatformManager

        public PlatformManager(IMenuManager menuManager, IThreadManager threadManager, ILogger logger, IDependencyResolver resolver)
        {
            _menuManager = menuManager;
            _threadManager = threadManager;
            _resolver = resolver;
            _logger = logger;

            var systems = _menuManager.Systems;

            // populate platforms when system change
            systems.Changed
                .Skip(1)
                .ObserveOn(Scheduler.Default)
                .Subscribe(UpdatePlatforms);

            // populate platform when games change
            systems.Changed
                .ObserveOn(Scheduler.Default)
                .SelectMany(_ => systems
                    .Select(system => system.Games.Changed.Select(__ => system))
                .Merge())
            .Subscribe(UpdatePlatform);
        }
开发者ID:freezy,项目名称:vpdb-agent,代码行数:23,代码来源:PlatformManager.cs


示例18: MessagePresenter

 public MessagePresenter(IThreadManager threadManager)
 {
     Should.NotBeNull(threadManager, nameof(threadManager));
     _threadManager = threadManager;
 }
开发者ID:dbeattie71,项目名称:MugenMvvmToolkit,代码行数:5,代码来源:MessagePresenter.cs


示例19: ImageAltTextChecker

 public ImageAltTextChecker(CrawlConfiguration crawlConfiguration, ICrawlDecisionMaker crawlDecisionMaker, IThreadManager threadManager, IScheduler scheduler, IPageRequester pageRequester, IHyperLinkParser hyperLinkParser, IMemoryManager memoryManager, IDomainRateLimiter domainRateLimiter, IRobotsDotTextFinder robotsDotTextFinder)
     : base(crawlConfiguration, crawlDecisionMaker, threadManager, scheduler, pageRequester, hyperLinkParser, memoryManager, domainRateLimiter, robotsDotTextFinder)
 {
 }
开发者ID:ChunLi0819,项目名称:AccessibilityTest,代码行数:4,代码来源:ImageAltTextChecker.cs


示例20: Solver

 ///<summary>
 /// Constructs a Solver.
 ///</summary>
 ///<param name="timeStepSettings">Time step settings used by the solver.</param>
 ///<param name="deactivationManager">Deactivation manager used by the solver.</param>
 /// <param name="threadManager">Thread manager used by the solver.</param>
 public Solver(TimeStepSettings timeStepSettings, DeactivationManager deactivationManager, IThreadManager threadManager)
     : this(timeStepSettings, deactivationManager)
 {
     ThreadManager = threadManager;
     AllowMultithreading = true;
 }
开发者ID:Indiefreaks,项目名称:igf,代码行数:12,代码来源:Solver.cs



注:本文中的IThreadManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ITicket类代码示例发布时间:2022-05-24
下一篇:
C# IThread类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap