Thread/Task Safe Lib Functions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Thread/Task Safe Lib Functions

1,032件の閲覧回数
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.

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

613件の閲覧回数
Nouchi
Senior Contributor II

Hello,

 

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

 

Emmanuel

0 件の賞賛
返信