Hi All,

I need to write one function which will share by multiple thread . this 
function will have some shared data resources that need to protect from 
simultinous execution of thread. I am planning to use mutex to protect my 
shared data resourse.

Now the requirement is that i wante to define mutex veriable in the function 
itself. i dont want to make it global or declare outside and pass is to 
function. 

One solution i can see is to declare mutex varible as static inside function 
but somewhere i heard that static is not thred safe. Please give me some 
pointers which will help me to resolve this issue.

I am using pthread library on linux.

Thanks,
Deepak


      Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/

[Non-text portions of this message have been removed]

Reply via email to