Question about threads which share a function
- From: "Joe" <Joe@xxxxxxxxxxxxxx>
- Date: Wed, 2 Jun 2010 17:47:33 +0200
I have a function defined as void foo(int* pIn, int* pOut). The function gets some data via pointer pIn and calculates some output data which is
written to the array pointed to by pOut. In the calculation of the output, some local variables defined in foo are used.
If I have two or more threads executing and these threads use foo, are there any risks
that something might go wrong; like the output being screwed up and
deviating from what is expected?
Thanks
.
- Follow-Ups:
- Re: Question about threads which share a function
- From: Daniel Pitts
- Re: Question about threads which share a function
- From: Ben Bacarisse
- Re: Question about threads which share a function
- Prev by Date: Free Live Voice and Video Chat!Connect with Over 4 Million Members download now
- Next by Date: Re: Question about threads which share a function
- Previous by thread: Free Live Voice and Video Chat!Connect with Over 4 Million Members download now
- Next by thread: Re: Question about threads which share a function
- Index(es):