Go to file
Stephen Seo 13bf59dcc8 Experimental: remove use of mutex when threaded
In theory, it seems that each pixel is only written to once, regardless
of how many threads there are. Theoretically, this means that locks are
not required.
2021-08-24 18:30:15 +09:00
example01_singleThread_c_impl Create example01 2021-08-20 17:35:11 +09:00
example02_threaded_raytracing Experimental: remove use of mutex when threaded 2021-08-24 18:30:15 +09:00
LICENSE Add MIT License 2021-08-23 21:37:29 +09:00
README.md Update README.md 2021-08-24 15:07:50 +09:00

What this repo is

This repo has some examples using multi-threaded-programming because someone asked about how it works.

Disclaimer

The examples have only been built/tested on Linux.

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.

Legal Stuff

The examples use CMake as their build system. CMake's License.