diff options
Diffstat (limited to 'meson/docs/markdown/Threads.md')
-rw-r--r-- | meson/docs/markdown/Threads.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meson/docs/markdown/Threads.md b/meson/docs/markdown/Threads.md new file mode 100644 index 000000000..b12d4c513 --- /dev/null +++ b/meson/docs/markdown/Threads.md @@ -0,0 +1,20 @@ +--- +short-description: Enabling thread support +... + +# 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) +``` |