Click here to Skip to main content
15,893,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: difference b/w iterators and indexing for STL Pin
Stuart Dootson8-Jul-09 7:04
professionalStuart Dootson8-Jul-09 7:04 
QuestionHow to use gotoxy().....? Pin
Razanust8-Jul-09 6:08
Razanust8-Jul-09 6:08 
AnswerRe: How to use gotoxy().....? Pin
Michael Schubert8-Jul-09 6:58
Michael Schubert8-Jul-09 6:58 
AnswerRe: How to use gotoxy().....? Pin
Jijo.Raj8-Jul-09 7:20
Jijo.Raj8-Jul-09 7:20 
Questionnewbie to multi threading Pin
minkowski8-Jul-09 5:45
minkowski8-Jul-09 5:45 
AnswerRe: newbie to multi threading Pin
Stuart Dootson8-Jul-09 6:54
professionalStuart Dootson8-Jul-09 6:54 
GeneralRe: newbie to multi threading Pin
minkowski8-Jul-09 7:04
minkowski8-Jul-09 7:04 
GeneralRe: newbie to multi threading Pin
Stuart Dootson8-Jul-09 9:34
professionalStuart Dootson8-Jul-09 9:34 
minkowski wrote:
So basically, anything that is in the for loop is only executable by 1 thread


Yup.

minkowski wrote:
If so, what if I have some member functions for a class, say a get() and a set() and I only want one thread at a time to access either of them


Same sort of thing - using the same threading classes as before:

class MyClass
{
   void SetMyObject(SomeClass const& value)
   {
      boost::mutex::scoped_lock lock(objectMutex);
      myObject = value;
   }
   SomeClass SetMyObject() const
   {
      boost::mutex::scoped_lock lock(objectMutex);
      return myObject;
   }
private:
   SomeClass myObject;
   boost::mutex objectMutex;
};


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: newbie to multi threading Pin
minkowski8-Jul-09 22:01
minkowski8-Jul-09 22:01 
GeneralRe: newbie to multi threading Pin
Stuart Dootson9-Jul-09 0:28
professionalStuart Dootson9-Jul-09 0:28 
GeneralRe: newbie to multi threading Pin
minkowski9-Jul-09 0:55
minkowski9-Jul-09 0:55 
GeneralRe: newbie to multi threading Pin
Stuart Dootson9-Jul-09 1:54
professionalStuart Dootson9-Jul-09 1:54 
GeneralRe: newbie to multi threading Pin
minkowski9-Jul-09 2:17
minkowski9-Jul-09 2:17 
GeneralRe: newbie to multi threading Pin
Stuart Dootson9-Jul-09 2:20
professionalStuart Dootson9-Jul-09 2:20 
GeneralRe: newbie to multi threading Pin
minkowski9-Jul-09 2:21
minkowski9-Jul-09 2:21 
GeneralRe: newbie to multi threading Pin
Stuart Dootson9-Jul-09 2:23
professionalStuart Dootson9-Jul-09 2:23 
QuestionRe: CFileDialog, disable "What's This?" menu Pin
mla1548-Jul-09 5:31
mla1548-Jul-09 5:31 
AnswerRe: CFileDialog, disable "What's This?" menu Pin
David Crow8-Jul-09 7:11
David Crow8-Jul-09 7:11 
GeneralRe: CFileDialog, disable "What's This?" menu Pin
mla15410-Jul-09 5:24
mla15410-Jul-09 5:24 
GeneralRe: CFileDialog, disable "What's This?" menu Pin
David Crow10-Jul-09 5:32
David Crow10-Jul-09 5:32 
GeneralRe: CFileDialog, disable "What's This?" menu Pin
mla15410-Jul-09 5:48
mla15410-Jul-09 5:48 
GeneralRe: CFileDialog, disable "What's This?" menu Pin
David Crow10-Jul-09 5:58
David Crow10-Jul-09 5:58 
GeneralRe: CFileDialog, disable "What's This?" menu Pin
mla15410-Jul-09 7:01
mla15410-Jul-09 7:01 
GeneralRe: CFileDialog, disable "What's This?" menu Pin
David Crow10-Jul-09 7:44
David Crow10-Jul-09 7:44 
GeneralRe: CFileDialog, disable "What's This?" menu Pin
mla15410-Jul-09 7:51
mla15410-Jul-09 7:51 

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.