From: Guillaume GOURDIN on
When using a wxTimer, is the code inside the timer callback threadsafe?
Am I guaranteed than the code I wrote to process the timer won't
concurrence any other avents processing?

Thank you.
From: Vadim Zeitlin on
On Tue, 22 Apr 2008 18:24:47 +0200 Guillaume GOURDIN <trash(a)hotmail.com> wrote:

GG> When using a wxTimer, is the code inside the timer callback threadsafe?
GG> Am I guaranteed than the code I wrote to process the timer won't
GG> concurrence any other avents processing?

Yes, the timer events are generated and processed in the main thread.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/

From: Harry "harry dot news at armadillo dot on

If you want to start timers from a thread you will need this patch:
<http://sourceforge.net/tracker/index.php?func=detail&aid=1923587&group_id=9863&atid=309863>

Regards
Harry

Guillaume GOURDIN wrote:
> When using a wxTimer, is the code inside the timer callback
> threadsafe? Am I guaranteed than the code I wrote to process the timer
> won't concurrence any other avents processing?
>
> Thank you.