Click here to Skip to main content
15,918,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Unhandled exception ? Pin
Mark Salsbery21-Oct-08 20:04
Mark Salsbery21-Oct-08 20:04 
AnswerRe: Unhandled exception ? Pin
Le@rner21-Oct-08 20:14
Le@rner21-Oct-08 20:14 
GeneralRe: Unhandled exception ? Pin
Mark Salsbery21-Oct-08 20:21
Mark Salsbery21-Oct-08 20:21 
GeneralRe: Unhandled exception ? Pin
Le@rner21-Oct-08 20:23
Le@rner21-Oct-08 20:23 
QuestionC/C++ question - Function prototype in other function Pin
Adeel Chaudhry21-Oct-08 18:17
Adeel Chaudhry21-Oct-08 18:17 
AnswerRe: C/C++ question - Function prototype in other function Pin
Naveen21-Oct-08 18:47
Naveen21-Oct-08 18:47 
GeneralRe: C/C++ question - Function prototype in other function Pin
Adeel Chaudhry21-Oct-08 19:37
Adeel Chaudhry21-Oct-08 19:37 
GeneralRe: C/C++ question - Function prototype in other function Pin
Naveen21-Oct-08 19:55
Naveen21-Oct-08 19:55 
Questionmac address libraries Pin
anilaabc21-Oct-08 17:26
anilaabc21-Oct-08 17:26 
AnswerRe: mac address libraries Pin
enhzflep21-Oct-08 18:41
enhzflep21-Oct-08 18:41 
QuestionWhat is the difference between c++ structs and c# structs..? Pin
Aslesh21-Oct-08 17:11
Aslesh21-Oct-08 17:11 
AnswerRe: What is the difference between c++ structs and c# structs..? Pin
Naveen21-Oct-08 18:39
Naveen21-Oct-08 18:39 
AnswerRe: What is the difference between c++ structs and c# structs..? Pin
Mark Salsbery21-Oct-08 18:58
Mark Salsbery21-Oct-08 18:58 
QuestionRe: What is the difference between c++ structs and c# structs..? Pin
CPallini21-Oct-08 21:46
mveCPallini21-Oct-08 21:46 
AnswerRe: What is the difference between c++ structs and c# structs..? Pin
Iain Clarke, Warrior Programmer21-Oct-08 22:03
Iain Clarke, Warrior Programmer21-Oct-08 22:03 
GeneralRe: What is the difference between c++ structs and c# structs..? Pin
CPallini21-Oct-08 22:05
mveCPallini21-Oct-08 22:05 
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 
GeneralRe: Need help with mutex Pin
auralius manurung21-Oct-08 10:52
auralius manurung21-Oct-08 10:52 
Thank for your reply.
I mean there is a main function that will call int ServerThreadRunner(). Meaning that for every thread will be handled by new CPROXY newobj pointer.

So, if it is only pointer pointing the same location, does it mean that i need to put synchronization for every data member that accessed by the thread function?

How about this:

std::list <spair> queue;
vs
std::list <spair*> queue;

which one needs synchronization, and which one doesn't need?


What came to my mind is: there is no need for synchronization unless i put the queue as a static variable. am i right?

static std::list <spair*> queue;


sorry if my question is not really good. i hope you understand. i can't just solve that problem by trial & error because both of them work. I need strong concept.

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.