[geeks] Win32 Threads

Jonathan C. Patschke jp at celestrion.net
Tue Dec 10 21:40:44 CST 2002


On Tue, 10 Dec 2002, Joshua D Boyd wrote:

> Hmm.  I was trying to strip out the proprietary stuff from my code to
> make an example of what was giving me grief, but the example worked
> properly.  Now I just have to figure out what the important difference
> between the two is.

Perhaps in stripping out the code, you've removed a race condition
between multiple threads reading/writing data?  If you need both threads
to be writing to the same pieces of data, be sure you're using some sort
of synchronization (critical sections, mutxes, etc.).

-- 
Jonathan Patschke
  "Albert Einstein nailed space-time, but the wild thing had him stumped.
   Al, baby, two and two make five-and-a-quarter; that's why people fall
   in love." -- Thomas Dolby, "That's Why People Fall in Love"



More information about the geeks mailing list