boost library - thread question

Discussion in 'C++' started by kathy, Feb 16, 2011.

  1. kathy

    kathy Guest

    if a thread'd join() is called, the caller blocked and wait for the
    thead to finish and detached automatically.

    So when we need to use detach()?

    I can not imagin a scenario to use the detach(). Also, if detach() is
    called, does it wait for thread to finish or like interrup to at
    interrupt points?
     
    kathy, Feb 16, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Richard Latter
    Replies:
    2
    Views:
    2,910
    Julie
    May 17, 2004
  2. =?ISO-8859-2?Q?Miros=B3aw?= Makowiecki

    The boost.variant library and boost::make_recursive_variant

    =?ISO-8859-2?Q?Miros=B3aw?= Makowiecki, Jul 5, 2007, in forum: C++
    Replies:
    1
    Views:
    706
    dasjotre
    Jul 6, 2007
  3. Miroslaw Makowiecki

    boost.thread library and the thread is running

    Miroslaw Makowiecki, Aug 9, 2007, in forum: C++
    Replies:
    1
    Views:
    468
    Victor Bazarov
    Aug 9, 2007
  4. Lars Uffmann
    Replies:
    13
    Views:
    1,014
    Lars Uffmann
    Feb 19, 2008
  5. Christopher
    Replies:
    0
    Views:
    1,384
    Christopher
    Jun 8, 2011
Loading...

Share This Page