Threading to prevent GUI Freeze

TheDGuy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jan 4 07:28:56 PST 2016


On Monday, 4 January 2016 at 15:07:12 UTC, Luis wrote:
> On Monday, 4 January 2016 at 14:31:04 UTC, TheDGuy wrote:
>> [...]
>
>
> Before doing anything with threads and GTK, you should read 
> this : 
> http://blogs.operationaldynamics.com/andrew/software/gnome-desktop/gtk-thread-awareness

Okay, so i have to do it like this on every function i use from 
GTKD?

threadsInit();
threadsEnter();
GtkAllocation size;
widget.getAllocation(size);
threadsLeave();


More information about the Digitalmars-d-learn mailing list