Thread: Can boost threads find a handle to current running thread?

  1. #1
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901

    Can boost threads find a handle to current running thread?

    I'm not sure if this is something that needs to be implemented in the language or not, but is there a way to obtain perhaps a handle or pointer to a thread that is currently running with boost::threads?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    boost::thread is supposed to be portable, it will most likely use a platform specific API, but the whole idea of the library is to avoid the need for an API call or a platform specific feature like a handle or pointer.

    If you need to use a handle, you might as well forgo the use of boost::thread and use an API

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting other processes class names
    By Hawkin in forum Windows Programming
    Replies: 3
    Last Post: 03-20-2008, 04:02 PM
  2. Critical Sections, destroying
    By Hunter2 in forum Windows Programming
    Replies: 4
    Last Post: 09-02-2003, 10:36 PM
  3. How to make a thread sleep or std::recv timeout?
    By BrianK in forum Linux Programming
    Replies: 3
    Last Post: 02-26-2003, 10:27 PM
  4. Block and wake up certain threads
    By Spark in forum C Programming
    Replies: 9
    Last Post: 06-01-2002, 03:39 AM
  5. Multi-Thread Programming
    By drdroid in forum C++ Programming
    Replies: 6
    Last Post: 04-04-2002, 02:53 PM