Bitmap allocator documentation.

Dhruv Matani dhruvbird@HotPOP.com
Fri Mar 12 12:39:00 GMT 2004


On Fri, 2004-03-12 at 16:15, Loren James Rittle wrote:
> In article <1079086454.1387.14.camel@localhost.localdomain>,
> Dhruv Matani<dhruvbird@HotPOP.com> writes:
> 

> In light of internal use of __gthread_active_p() to reduce mutex
> overhead for single-threaded cases by gthr.h itself on platforms
> supporting WEAK symbols; you are done until there is extra tuning you
> could do if you knew no threads existed.  The mt_allocator could
> profit by doing so.  Sorry, if I raised a red herring, my main concern
> was killing any advice that library users should directly touch the
> __GTHREAD macro.  They should never have to touch it anymore.

So, can I do something like this:

bool Is_Threads_Enabled = __gthread_active_p();

and instread of writing everywhere:
if (__gthread_active_p())

write:

if (Is_Threads_Enabled)

???







-- 
	-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