Skip to content
Jean-Michel Gonet edited this page Jan 26, 2019 · 14 revisions

Step 1

Mark these words with fire and iron: You do not call GUI functions from another thread. You only do that from the main thread(also called gui thread). You could do it from another thread but you need to acquire some specific GDK locks first, if I remember correctly. https://ubuntuforums.org/showthread.php?t=2103045

Application design with coupled modules

Further reading:

Step 2 - Loosely coupled modules with event bus

Loosely coupled modules with event bus

Step 3 - Loosely coupled modules with execution context

Loosely coupled modules with execution context

Event handlers return value

Include order

Having debug symbols by default

You can't just launch a thread and forget about it

The thread variable should not go out of scope while the thread is still running:

How to build a singleton

A class to launch a thread

To measure elapsed time:

The thing with M_PI and other math constants: