Results 1 to 2 of 2

Thread: How re-start the thread

  1. #1
    level is offline Registered User
    Join Date
    Feb 2004
    Location
    China
    Posts
    71

    How re-start the thread

    I make a WorkQueue inherited from IceUtil::Thread;
    like this
    WorkQueuePtr h = new WorkQueue();
    IceUtil::ThreadControl control = h->start();
    First I call
    control.yield();
    want to stop the h thread.
    And I call
    control = h->start();
    again .this code throw.
    .\Thread.cpp:227: IceUtil::ThreadStartedException


    My question is how can I re-start a thread ?

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Threads cannot be restarted. You must create a new thread.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. IceGrid server can not start.
    By Jiangyubao in forum Help Center
    Replies: 0
    Last Post: 05-07-2008, 11:39 PM
  2. Where do new developers start..?
    By psaunder in forum Help Center
    Replies: 8
    Last Post: 01-02-2007, 07:29 PM
  3. IceGridGui start - ClassNotFoundException
    By kovacm in forum Bug Reports
    Replies: 7
    Last Post: 11-21-2005, 07:00 AM
  4. start icepacknode manually
    By zhuxiaofeng in forum Help Center
    Replies: 2
    Last Post: 10-06-2004, 07:52 PM
  5. How to start ICE?
    By RichardChan in forum Help Center
    Replies: 3
    Last Post: 07-26-2004, 09:16 AM

Posting Permissions

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