T
TOMERDR
Hi,
I have a sync manager class which span a thread which run a tight
loop(Sync function)
I would like that after the loop is finished,every 5 minutes the
thread will run again
I want also the ability to stop the thread in the middle of the loop
Is it ok to just use a timer in the SyncManager class?
Thanks in advance
public class SyncManager
{
Thread m_workerThread;
public SyncManager()
{
}
/// <summary>
///
/// </summary>
public Stop()
{
}
/// <summary>
///
/// </summary>
public void Start()
{
m_workerThread= new Thread(new ThreadStart(Sync));
m_workerThread.Name = "Sync";
m_workerThread.IsBackground = true;
m_workerThread.Start();
}
/// <summary>
///
/// </summary>
public void Sync()
{
}
I have a sync manager class which span a thread which run a tight
loop(Sync function)
I would like that after the loop is finished,every 5 minutes the
thread will run again
I want also the ability to stop the thread in the middle of the loop
Is it ok to just use a timer in the SyncManager class?
Thanks in advance
public class SyncManager
{
Thread m_workerThread;
public SyncManager()
{
}
/// <summary>
///
/// </summary>
public Stop()
{
}
/// <summary>
///
/// </summary>
public void Start()
{
m_workerThread= new Thread(new ThreadStart(Sync));
m_workerThread.Name = "Sync";
m_workerThread.IsBackground = true;
m_workerThread.Start();
}
/// <summary>
///
/// </summary>
public void Sync()
{
}