The objective of these C++ examples is to demonstrate how to use the Glibmm classes to dispatch tasks into the main thread on Linux.
git clone https://github.com/zhanglin-wu/main-thread-dispatcher
cd examples
g++ -g -Wall -o main-thread-dispatcher main-thread-dispatcher.cpp `pkg-config --cflags --libs glibmm-2.4 giomm-2.4`
./main-thread-dispatcher
-
VS Code Extension: Remote - Containers, for connecting with a docker container
-
VS Code Extension: C/C++, for editing and debugging C++ code
Open the folder in VS Code, execute the command "Remote-Containers: OpenFolder in Container...", and then wait for it to build and run the docker image.
Once you are inside the docker container, you can use the commans that you would use on a Linux system to build and run the examples.
See more details about how to run C++ programs in a docker container at: cairomm-pangomm-on-linux-docker.