G
Guest
Hi, Happy New Year!
Im writing a primary singlethreaded program. However I would like to insert
a timer to do a check by reading some values in a file if accessable. The
timer thread should set a boolean to either true or false depending on wether
or not the user has responded to a messagebox created by the thread. This
boolean should be accessible by subsequent timer threads in order to avoid
the screen filling up with messageboxes. How can I make suck a boolean
visible to each timer thread - is there a way to protect it from being
adressed by two threads at the same time. I'm a former C++ programmer and did
a little multi threaded programming and know only little about the multi t
concepts. Thanks.
Jesper, Denmark,
Im writing a primary singlethreaded program. However I would like to insert
a timer to do a check by reading some values in a file if accessable. The
timer thread should set a boolean to either true or false depending on wether
or not the user has responded to a messagebox created by the thread. This
boolean should be accessible by subsequent timer threads in order to avoid
the screen filling up with messageboxes. How can I make suck a boolean
visible to each timer thread - is there a way to protect it from being
adressed by two threads at the same time. I'm a former C++ programmer and did
a little multi threaded programming and know only little about the multi t
concepts. Thanks.
Jesper, Denmark,