|
Boost : |
From: William E. Kempf (wekempf_at_[hidden])
Date: 2003-06-30 09:25:38
Philippe A. Bouchard said:
> Howard Hinnant wrote:
>
>> On Saturday, June 28, 2003, at 02:43 PM, Philippe A. Bouchard wrote:
>>
>>> Hi there,
>>>
>>> I was wondering if you were planning to implement some static
>>> thread &
>>> thread::current() that returns the current thread id (& thread).
>>> That would
>>> be really useful.
>>
>> The thread default constructor serves this role:
>>
>> void foo()
>> {
>> thread self; // current thread
>> ...
>> }
>
>
> Thanks... but is it possible to obtain the initial address of the
> functor object portably, given the current thread object?
No, and why would you want to? Especially since it will be a pointer to a
_copy_ of the functor?
-- William E. Kempf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk