|
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
follows:
template <class Obj,
class Feature1=default_template_arg,
class Feature2=default_template_arg,
class Feature3=default_template_arg >
class thread {
public:
thread(Obj* o_);
void run();
void join();
void detach();
void yield();
~thread();
};
Where Feature1, Feature2, and Feature3 are for ContentionScope,
DetachState, and SchedulePolicy.
I attached the header for using pthreads and a trivial example.
-- Cheers, Rich
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk