GSoC/GCI Archive
Google Code-in 2012 BRL-CAD

Create test for thread creation on Windows

completed by: Skriptkid

mentors: Sean

This is a follow-on of a previous GCI task:


Your task is to test whether that thread creation actually works correctly.  Write a small test program that calls bu_parallel() and calls a function N times.

You can submit this as a partial unit test for parallel.c by adding a new test file similar to several other existing files.  You can write the test on any platform, but ideally you'll have access to a clean Windows build so that you can specifically test the new Windows thread creation.


  • src/libbu/tests/CMakeLists.txt
  • src/libbu/tests/test_parallel.c  <-- you write this, test bu_parallel()