List/TreeStore and threads
- From: Yann Leydier <yann leydier info>
- To: gtkmm-list gnome org
- Subject: List/TreeStore and threads
- Date: Fri, 02 Aug 2013 14:51:02 +0200
Hi,
my application fills some TreeStrores and ListStores at runtime but the
data is read from large files and the computation of some values takes
time. Therefore I put a progress bar in a splash window and fill the
store in another thread.
The TreeView fills oddly: once the lines do not fit anymore on the
display, the scollbar is not updated. I tried to add
gdk_threads_entrer() and gdk_threads_leave() before and after the calls
to XXXStore::append() but it did not change anything.
First question: are the stores really thread unsafe? I tend to consider
them as non-UI classes, so TreeView should be the one handling the
thread-safety…
Second question: how do I make sure I do not mess up with the thread
safety when filling my stores?
Thanks a lot,
yann
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]