Results 1 to 2 of 2

Thread: [RESOLVED] Thread.IsAlive ???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2008
    Posts
    159

    Resolved [RESOLVED] Thread.IsAlive ???

    Hello,

    Is there a method similar to Thread.IsAlive in WPF? I am wanting to run two threads together (not with backgroundworker) and have the main (sending) thread sleep while both are alive.

    In standard winform I would do this.

    Code:
    while (t1.IsAlive || t2.IsAlive)
    {
         Thread.Sleep(1);
    }
    If searched google and I cannot find a simple methode to reproduce this. Any help is appreciated.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Jun 2008
    Posts
    159

    Re: Thread.IsAlive ???

    ignore.... had a brain fart and was looking to do something different.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width