Lucas Tolbert

Thread/Task Safe Lib Functions

Discussion created by Lucas Tolbert on Sep 24, 2010
Latest reply on Sep 24, 2010 by Nouchi

I am writing my own tasking software as hobby project.  I'm wanting to learn how something like that is put together.  I've created various ways to allow my own functions to be thread safe using mutex and semaphore devices but I don't know anything about the standard library functions.

 

Is there any documentation on what library should not have multiple tasks accessing them?

I'm sure strtok is an example of where only 1 thread can use it at a time.  I suspect malloc and free are also that way.

 

I am using CodeWarrior for Coldfire v7.2.

 

Thanks.

Outcomes