2021-08-20 08:35:11 +00:00
|
|
|
# What this repo is
|
|
|
|
|
|
|
|
This repo has some examples using multi-threaded-programming because someone
|
|
|
|
asked about how it works.
|
2021-08-23 12:40:34 +00:00
|
|
|
|
2021-08-24 05:56:55 +00:00
|
|
|
# Disclaimer
|
|
|
|
|
|
|
|
The examples have only been built/tested on Linux.
|
|
|
|
|
2021-08-23 12:40:34 +00:00
|
|
|
# Example 1
|
|
|
|
|
|
|
|
Just a very simple program that spawns a separate thread, prints some text, and
|
|
|
|
joins and stops.
|
|
|
|
|
|
|
|
# Example 2
|
|
|
|
|
|
|
|
Kind of overkill to implement a simple raytracer, but I needed something that
|
|
|
|
would take time to render and would benefit from multiple threads. This example
|
|
|
|
renders a scene with three lights and some spheres.
|
2021-08-24 06:07:50 +00:00
|
|
|
|
|
|
|
# Legal Stuff
|
|
|
|
|
|
|
|
The examples use [CMake](https://cmake.org/) as their build system.
|
|
|
|
[CMake's License.](https://gitlab.kitware.com/cmake/cmake/-/blob/master/Copyright.txt)
|