I am using VC++ Document file called coninfo.rec to store
some configuration information. i used cmapstringtoob classes to serialzie information. I am using 2 different threads in my application. I had a function which access this document information. Those 2 threads may access this function. In order to avoid this function been called by a thread when other one is using it, please help me how to synchronize. Will the critical section methods apply ?
the function name is Proccess_Query(.....)
the to other thread routines that calls this function is
threadfunc1(....) & threadfunc2(...)
Kindly give the detailed reply. I can increase the points
for convincing answers.
r sundar r