Next: , Previous: , Up: Multithreading   [Contents][Index]

14.5 The Gnulib multithreading API

The Gnulib multithreading API is documented in the respective include files:

To make use of Gnulib multithreading, use the following Gnulib modules:

For thread creation and management: thread
For simple locks, recursive locks, and read-write locks: lock
For once-only execution: lock
For “condition variables” (wait queues): cond
For thread-local storage: tls
For relinquishing control: yield

The Gnulib multithreading supports a configure option ‘--enable-threads={isoc,posix,windows}’, that chooses the underlying thread implementation. Currently (2020):