Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-06-26 16:31:00


Here's an alternative interface, mostly due to Rich Lee. The "thread" type
here is similar to the thread_desc that Bill uses. The static functions of
Bill's interface are instead free functions. Also, no reference counting
or smart pointers are used in this version.

namespace boost {

  typedef implementation-defined thread;
  bool operator==(const thread&, const thread&);
  bool operator!=(const thread&, const thread&);

  template <class Function>
  thread create_thread(const Function&);

  template <class Function, class Arg>
  thread create_thread(const Function&, const Arg&);

  void join_threads();
  void join_thread(thread);

  thread thread_self();

  void sleep_thread(const xtime&);

  void yeild();
}

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate, IU B'ton email: jsiek_at_[hidden]
 Summer Manager, AT&T Research phone: (973) 360-8185
----------------------------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk