Exemplo n.º 1
0
 /// <summary>
 /// Stops the task.
 /// </summary>
 /// <remarks>
 /// This method calls ComponentPort.Cancel() before stopping the thread.
 /// </remarks>
 /// <since_tizen> 9 </since_tizen>
 public void Stop()
 {
     lock (_threadLock)
     {
         if (_thread != null)
         {
             Port?.Cancel();
             _thread.Join();
             _thread = null;
         }
     }
 }