Thread/Task Safe Lib Functions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Thread/Task Safe Lib Functions

661 Views
ByarLT
Contributor I

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.

Labels (1)
0 Kudos
1 Reply

242 Views
Nouchi
Senior Contributor II

Hello,

 

You should have a look to EWLCreference.pdf documents about EWL_THREADSAFE and EWL_PTHREADS definitions.

 

Emmanuel

0 Kudos