about
12/06/2022
CppThreads Repo
CppThreads code

CppThreads  Repository

Code illustrates a lot of the C++ thread library capabilities

Quick Status Code functions correctly no known defects Demonstration code yes Documentation yes Test cases none planned Static library none planned Build requires C++17 option Planned design changes Add more demonstrations

1.0 Contents

This repository provides a collection of thread useage demos and examples of Tasks.
  • Cpp11-Concurrency
    A set of about a dozen projects that illustrate basic thread operations.
  • Cpp11-ThreadTechniques
    Techniques for interoperating with threads, including passing and returning values.
  • Cpp11-ThreadWithCallback
    Example of triggering a callback when a thread completes.
  • Cpp11-Tasks
    Tasks use a static threadpool for executing callable objects concurrently, e.g., pieces of work needed for some analysis.
  • Cpp11-BlockingQueue
    A thread-safe queue that blocks deQuer when empty. It's implemented with a mutex and condition variable.
  • LockPerformance
    Compares performance of several locking constructs provided by Win32 and by C++ thread library.

2.0 Build

All code was built with Visual Studio, Community Edition - 2019, and tested on Windows 10.
  Next Prev Pages Sections About Keys