Boost logo

Boost :

From: llee1_at_[hidden]
Date: 2001-06-26 17:29:15

On Tue, 26 Jun 2001, Jeremy Siek wrote:

> Here's an alternative interface, mostly due to Rich Lee.

In fact, I have changed the interface from free functions to class as

  template <class Obj,
            class Feature1=default_template_arg,
            class Feature2=default_template_arg,
            class Feature3=default_template_arg >
  class thread {
    thread(Obj* o_);
    void run();

    void join();
    void detach();

    void yield();


Where Feature1, Feature2, and Feature3 are for ContentionScope,
DetachState, and SchedulePolicy.

I attached the header for using pthreads and a trivial example.


Boost list run by bdawes at, gregod at, cpdaniel at, john at