Revision d4d4df69
Von admin vor mehr als 4 Jahren hinzugefügt
src/gui/gui_dialogs.c | ||
---|---|---|
GWEN_PROGRESS_DATA *t;
|
||
GWEN_DIALOG *dlg=NULL;
|
||
|
||
assert(gwenhywfar_gui);
|
||
|
||
t=pd;
|
||
while (t) {
|
||
highest=t;
|
Auch abrufbar als: Unified diff
No longer directly use global variable gwenhywfar_gui.
We now use a thread-local variable, so a thread can set its own GUI
implementation.
The reason is that most X11 GUIs down allow any thread of a process other
than the main thread to access the graphical interface. If a thread function
uses other GWEN functions which might call GUI functions this would be a
problem.
With thread-local variables each thread can have its own GUI, side-threads
might want to use e.g. the GUI implementation from GWEN_NoGui_new().