aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Threads.md
blob: d4f1bcae8dcf1174b186fcc80bd386a4854ad7e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Threads

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

```meson
thread_dep = dependency('threads')
```

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

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