
Peter Dimov-5 wrote:
Vicente Botet Escriba wrote:
For me it is unacceptable to use reallocation of the vector on the operator*.
Operator* has a non-NULL precondition and doesn't need to reallocate. reset() does, but only if you set a thread_specific_ptr that has been created after the thread has started.
I was responding to the proposition of Stefan, not to the current implementation. Peter Dimov-5 wrote:
More, any non-constant time operator* don't satisfy my requirements for some specific contexts.
I don't think that any implementation gives you this constant time guarantee if you continually create thread-specific variables.
When you say "continually create thread-specific variables" do you mean without removing them. In this case you will reach the limit of keys, but this seems to me a use case that has not too much sens. pthread give it for a limited number of key, isn't it? Vicente -- View this message in context: http://old.nabble.com/Boost-library-submission-%28poll-for-interest%29-tp270... Sent from the Boost - Dev mailing list archive at Nabble.com.