コード例 #1
0
 public OvrvisionTextureProcessor()
 {
     _ovr = new COvrvisionUnity();
     _ovr.useProcessingQuality = COvrvisionUnity.OV_CAMQT_DMS;
     _processorThread          = new ProcessorThread(this);
     _processorThread.Start();
 }
コード例 #2
0
        public IEventProcessor Start()
        {
            if (Started)
            {
                return this;
            }

			foreach (var module in Configuration.Modules)
			{
				module.Initialize(this);
			}

	        Configuration.ProjectionService.AttemptInitialization(this);

			foreach (var eventProjection in _eventProjections)
            {
                var processorThread = new ProcessorThread(string.Format("EventQueue-{0}", eventProjection.Name),
                    new EventProjectionProcessor(this, eventProjection));

                processorThread.Start();

                _processorThreads.Add(processorThread);
            }

            _started = true;

	        return this;
        }
コード例 #3
0
 public TxOVRVisionImageProcessor(TxKitEyes e)
 {
     _eyes = e;
     _ovr  = new COvrvisionUnity();
     _ovr.useProcessingQuality = COvrvisionUnity.OV_CAMQT_DMS;
     _processorThread          = new ProcessorThread(this);
     _processorThread.Start();
 }
コード例 #4
0
        internal SendMessageTask(NTcpListener listenser)
        {
            _Listener        = listenser;
            _TotalQueueCount = 0;
            Event            = new AutoResetEvent(false);

            _Thread = new ProcessorThread(ThreadProc);

            _Thread.IsBackground = true;
        }
コード例 #5
0
        /// <summary>
        /// Stop the connection
        /// </summary>
        internal void Stop()
        {
            // Request the listener thread to stop
            StopRequested = true;

            // If connection failed to start there's no processor thread
            if (ProcessorThread != null)
            {
                // Wait for termination
                ProcessorThread.Join();
            }
        }
コード例 #6
0
    public TxOVRVisionImageProcessor(TxKitEyes e)
    {
        _eyes = e;
        _ovr  = new COvrvisionUnity();
        _ovr.useProcessingQuality = COvrvisionUnity.OV_CAMQT_DMS;
        _processorThread          = new ProcessorThread(this);
        _processorThread.Start();

        for (int i = 0; i < 2; ++i)
        {
            _flipProcessor[i]              = new OffscreenProcessor();
            _flipProcessor[i].ShaderName   = "Image/FlipCoord";
            _flipProcessor[i].TargetFormat = RenderTextureFormat.ARGB32;
        }
    }
コード例 #7
0
ファイル: ProcessorMT.cs プロジェクト: zbxzc35/BoostTree
 public ProcessorThreadObj(ManualResetEvent startEvent, ManualResetEvent doneEvent, ProcessorThread processorThread)
 {
     this.startEvent = startEvent;
     this.doneEvent = doneEvent;
     this.processorThread = processorThread;
 }
コード例 #8
0
 protected override void OnStart(string[] args)
 {
     _service         = new ReportServiceHost();
     _ProcessorThread = new ProcessorThread();
 }
コード例 #9
0
 protected virtual void TerminateProcessing()
 {
     ProcessorThread.Join(1500);
 }