Re: is GtkRadioButton thread safe? how do I make sure my similar widget is also thread safe?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I'm sure I understand you because of the following, but to make
> absolutely certain...  you mean: locking shared structures from within
> generic widget code (such as that defined by the GtkRadioButton) is a
> terrible idea.  right?  (don't bother answering this question, unless my
> head is really on backwards.)

GtkWidget's are thread-safe when you use the gdk_threads_enter and
gdk_threads_leave right.

> Thank you very much for removing my confusion.  I'll let my simple
> widgets continue to be non-thread-safe.

Yes. Since the widgets don't do the thread-locking. User-code does, and
the gtk-main-loops.


Stian Skjelstad
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux