About the testsuite file allocator_threads.h
Dhruv Matani
dhruvbird@gmx.net
Fri Feb 27 08:28:00 GMT 2004
On Fri, 2004-02-27 at 12:56, Stefan Olsson wrote:
> Dhruv Matani wrote:
>
> >1. do_loop does not return anything.
> >
> Hi Dhruv,
>
> which file are you talking about?
> libstdc++-v3/testsuite/performance/20_util/allocator/map_thread.cc?
No.
/testsuite/performance/allocator_thread.cc
> You're right - it doesn't return anything but then again that doesn't
> matter. From a esthetic point of view I guess it should return NULL.
Yes, because the compiler warns about it.
> >2. Can functions passed to pthread_create have C++ linkage?
> >
> Well, pthread_create takes a void*...
Or does it?
It takes a pointer to a function that returns void* and takes a void*
having [...(C/C++???)] linkage.
I think that it's C linkage, and all templates have C++ linkage.
> ...what's the question here?
> Brgds
>
> /Stefan
--
-Dhruv Matani.
http://www.geocities.com/dhruvbird/
Proud to be a Vegetarian.
http://www.vegetarianstarterkit.com/
http://www.vegkids.com/vegkids/index.html
More information about the Libstdc++
mailing list