Search found 78 matches

by Virchanza
Mon Jul 27, 2009 7:00 am
Forum: Open Discussion
Topic: Any need for "volatile" when accessing stuff btwn
Replies: 6
Views: 2275

The reason I asked, is that "volatile" is intended to be used in circumstances where the value of a variable may change spontaneously outside the normal flow of a program. Because its value may spontaneously change, the variable's value should never be cached, it should always be read straight from ...
by Virchanza
Mon Jul 27, 2009 12:29 am
Forum: Open Discussion
Topic: Any need for "volatile" when accessing stuff btwn
Replies: 6
Views: 2275

Any need for "volatile" when accessing stuff btwn

Let's say I have a global variable called "monkey": int monkey; And let's that I have two different threads that need to access this variable. Of course, I'm gonna create a wxCriticalSection and do p_critical_section_monkey->Enter() before I access it. My question though is whether I need to define ...
by Virchanza
Sun Jul 19, 2009 7:04 am
Forum: C++ Development
Topic: Separate thread is populating wxListCtrl in main thread
Replies: 1
Views: 943

Separate thread is populating wxListCtrl in main thread

I've got experience writing multi-threaded commandline programs with the pthreads library, but now I'm taking one of my command line programs and turning it into a GUI program, so I'm using wxWidgets :D (It's absolutely fantastic by the way, and with wxFormBuilder it's absolutely amazing). So anyway...