C++ Interface


The C++ interface to the Dinkum Threads Library is very similar to the thread support interface defined in the boost.threads library for C++. Some details of this implementation differ from the boost.threads implementation. For example, in this implementation classes and functions are enclosed in namespace Dinkum/threads instead of namespace boost. Implementation differences are marked as such, throughout this document, by a link to this paragraph.

The C++ interface consists of several headers:

Here is an example program to illustrate the use of the C++ interface.

The C++ interface makes suitable use of templates and classes, but its functionality is otherwise quite similar to that described for the C interface.


See also the Table of Contents and the Index.

Copyright (c) by P.J. Plauger. All rights reserved.