本文整理汇总了C#中IScheduler.StartThread方法的典型用法代码示例。如果您正苦于以下问题:C# IScheduler.StartThread方法的具体用法?C# IScheduler.StartThread怎么用?C# IScheduler.StartThread使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IScheduler
的用法示例。
在下文中一共展示了IScheduler.StartThread方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
public void Start(IScene scene)
{
m_scene = scene;
m_scheduler = m_scene.Simian.GetAppModule<IScheduler>();
if (m_scheduler == null)
{
m_log.Error("Can't load SimplePhysics without an IScheduler");
return;
}
m_terrain = m_scene.GetSceneModule<ITerrain>();
m_scene.OnEntityAddOrUpdate += EntityAddOrUpdateHandler;
m_scene.OnEntityRemove += EntityRemoveHandler;
m_scheduler.StartThread(PhysicsLoop, "SimplePhysics", ThreadPriority.Normal, true);
}
示例2: Start
public void Start(IScene scene)
{
m_scene = scene;
m_scheduler = scene.Simian.GetAppModule<IScheduler>();
if (m_scheduler == null)
{
m_log.Warn("EventQueueManager requires an IScheduler");
return;
}
m_httpServer = m_scene.Simian.GetAppModule<IHttpServer>();
if (m_httpServer == null)
{
m_log.Warn("Upload requires an IHttpServer");
return;
}
m_scene.Capabilities.AddProtectedResource(m_scene.ID, "EventQueueGet", EventQueueHandler);
m_udp = m_scene.GetSceneModule<LLUDP>();
if (m_udp != null)
{
m_running = true;
m_scheduler.StartThread(EventQueueManagerThread, "EventQueue Manager (" + scene.Name + ")", ThreadPriority.Normal, false);
}
}