View Single Post
Old 07-31-2008   #4 (permalink)
Curious


 
 

Re: Use "lock" in three methods to prevent shared-memory corruption

Hi Jack,

Thanks for asking this!

#1 and #2 are on the same main thread, while #3 is on a separate timer
thread that runs every 15 seconds.

#1 and #2 are events and may happen at anytime. What happens if #1 and
#2 happen at the same time? Are they serizlized or do they step on
each other's feet?
My System SpecsSystem Spec