Newlib thread features.

Fabrice Gautier Fabrice_Gautier@sdesigns.com
Mon Sep 17 13:33:00 GMT 2001


And I guess there's no thread management functions (I means things like
"create_thread" ) since it will be very much dependent of the underlying OS.


Thanks for the details, 

> -----Original Message-----
> From: J. Johnston [ mailto:jjohnstn@cygnus.com ]
> Subject: Re: Newlib thread features.
> 
> Newlib is not fully thread-safe.  It has special versions of 
> routines that can be
> used to create a thread-safe program.  These are the _r 
> routines which take an additional
> parameter which is the reentrancy structure for that thread.  
> A program must create
> a separate reentrancy structure per thread.
> 
> One unprotected area is I/O.  A program must take 
> responsibility for protecting all
> access to files.  In the case of storage allocation and 
> environment variables, special
> mutex calls are made but the code for the mutex locks is 
> generally not provided for
> most platforms.  If you code these routines, then the two 
> areas are subsequently protected.

-- 
Fabrice Gautier, 
Fabrice_Gautier@sdesigns.com



More information about the Newlib mailing list