Discussion:
wxGrid: can I write to wxGridStringTable from a secondary thread without using wxMutexGuiEnter ()?
Mahmoud Eltahawy
2014-04-29 10:06:21 UTC
Permalink
Hi all,
Can I write data to wxGridStringTable from a secondary thread without using
wxMutexGuiEnter/Leave ()


Thanks
Mahmoud
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Eric Jensen
2014-04-29 10:53:17 UTC
Permalink
Hello Mahmoud,

Tuesday, April 29, 2014, 12:06:21 PM, you wrote:

ME> Hi all,
ME> Can I write data to wxGridStringTable from a secondary thread without using
ME> wxMutexGuiEnter/Leave ()

I would say no. Updating data might be ok, but adding or deleting
rows/columns not.

If you're changing the data while the wxGrid is repainting itself, it
could read inconsistent data.

Eric
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...