Skip to content

Threads

Jussi Pakkanen edited this page Dec 25, 2015 · 4 revisions

Meson has a very simple notational shorthand for enabling thread support on your build targets. First you obtain the thread dependency object like this:

thread_dep = dependency('threads')

And then you just use it in a target like this:

executable('threadedprogram', ...
  dependencies : thread_dep)

Back to index.

Meson documentation has moved

All documentation is now on the main web site.

This page should be at this address.

Clone this wiki locally