Click here to Skip to main content
15,903,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHelp with code Pin
dtaylor0121-Oct-08 15:46
dtaylor0121-Oct-08 15:46 
AnswerRe: Help with code Pin
Naveen21-Oct-08 16:08
Naveen21-Oct-08 16:08 
AnswerRe: Help with code Pin
CPallini21-Oct-08 21:36
mveCPallini21-Oct-08 21:36 
AnswerRe: Help with code Pin
Iain Clarke, Warrior Programmer21-Oct-08 21:59
Iain Clarke, Warrior Programmer21-Oct-08 21:59 
QuestionLinker options Pin
freeheap21-Oct-08 9:08
freeheap21-Oct-08 9:08 
AnswerRe: Linker options Pin
Perspx21-Oct-08 9:51
Perspx21-Oct-08 9:51 
QuestionNeed help with mutex Pin
auralius manurung21-Oct-08 6:42
auralius manurung21-Oct-08 6:42 
AnswerRe: Need help with mutex Pin
Mark Salsbery21-Oct-08 6:56
Mark Salsbery21-Oct-08 6:56 
auralius wrote:
before i run the thread i did put it into a newobj, so meaning that every newobj has its own member


I'm not sure what you mean by that.

Your code doesn't show how many CPROXY objects are created.

Just because you do this:
CPROXY *newobj = (CPROXY *)param;

doesn't mean there's a new CPROXY object - it's just a pointer to an object
that is passed to the thread.

If every thread has its own CPROXY object, then no, you don't need synchronization.

If every thread is using the same CPROXY object, and there's any chance more than
one thread can access this object at the same time, then yes you need synchronization.

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Need help with mutex Pin
auralius manurung21-Oct-08 10:52
auralius manurung21-Oct-08 10:52 
GeneralRe: Need help with mutex Pin
Mark Salsbery21-Oct-08 11:06
Mark Salsbery21-Oct-08 11:06 
GeneralRe: Need help with mutex Pin
auralius manurung21-Oct-08 17:02
auralius manurung21-Oct-08 17:02 
GeneralRe: Need help with mutex [modified] Pin
Mark Salsbery21-Oct-08 18:17
Mark Salsbery21-Oct-08 18:17 
GeneralRe: Need help with mutex Pin
auralius manurung21-Oct-08 19:43
auralius manurung21-Oct-08 19:43 
GeneralRe: Need help with mutex Pin
Mark Salsbery21-Oct-08 20:06
Mark Salsbery21-Oct-08 20:06 
QuestionDWM - desktop windows manager Pin
Sarriss21-Oct-08 5:31
Sarriss21-Oct-08 5:31 
AnswerRe: DWM - desktop windows manager Pin
Richard Andrew x6421-Oct-08 5:43
professionalRichard Andrew x6421-Oct-08 5:43 
GeneralRe: DWM - desktop windows manager Pin
Sarriss21-Oct-08 5:52
Sarriss21-Oct-08 5:52 
GeneralRe: DWM - desktop windows manager Pin
Richard Andrew x6421-Oct-08 6:08
professionalRichard Andrew x6421-Oct-08 6:08 
GeneralRe: DWM - desktop windows manager Pin
Sarriss21-Oct-08 7:29
Sarriss21-Oct-08 7:29 
QuestionNeed help in C++ classes Pin
Quecumber25621-Oct-08 4:59
Quecumber25621-Oct-08 4:59 
AnswerRe: Need help in C++ classes Pin
Rajesh R Subramanian21-Oct-08 5:22
professionalRajesh R Subramanian21-Oct-08 5:22 
GeneralRe: Need help in C++ classes Pin
Quecumber25621-Oct-08 6:02
Quecumber25621-Oct-08 6:02 
QuestionRe: Need help in C++ classes Pin
CPallini21-Oct-08 6:45
mveCPallini21-Oct-08 6:45 
AnswerRe: Need help in C++ classes Pin
Quecumber25622-Oct-08 3:42
Quecumber25622-Oct-08 3:42 
GeneralRe: Need help in C++ classes Pin
CPallini22-Oct-08 3:44
mveCPallini22-Oct-08 3:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.