Skip to content

C++ examples using Glibmm to dispatch tasks into main thread on Linux

License

Notifications You must be signed in to change notification settings

zhanglin-wu/main-thread-dispatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Main Thread Dispatcher with Glibmm on Linux

Overview

The objective of these C++ examples is to demonstrate how to use the Glibmm classes to dispatch tasks into the main thread on Linux.

Build and Run

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

Docker container (Host: Windows/macOS/Linux)

Prerequisites
Build and debug C++ program in docker

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.

References

About

C++ examples using Glibmm to dispatch tasks into main thread on Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published