|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-01-19 11:55:29
On Sat, 19 Jan 2002, bill_kempf wrote:
willia>
willia> Not an entirely bad idea. Instead of an adopt() method you'd have a
willia> constructor that would take the foreign_thread object (yeah, that
willia> name needs to change). The only problem I see is that when you use
willia> the default constructor (pthread_self() equivalent) the current
willia> thread may not be a "native" thread (yeah, name change). How would
willia> you suggest we work around this?
First, let me ask a question. How did you plan on handling this? (with
your latest thread stuff, not including my suggestion) How do you
tell whether the current thread is a boost thread or a platform thread?
Cheers,
Jeremy
----------------------------------------------------------------------
Jeremy Siek http://php.indiana.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk