Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d4d4df69

Von admin vor mehr als 4 Jahren hinzugefügt

  • ID d4d4df6960b6a3ad4b582d4261ecbf1432824fd4
  • Vorgänger f54fca55
  • Nachfolger a4df62b5

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().

  • hinzugefügt
  • geändert
  • kopiert
  • umbenannt
  • gelöscht