1--- 2short-description: Enabling thread support 3... 4 5# Threads 6 7Meson has a very simple notational shorthand for enabling thread support on your build targets. First you obtain the thread dependency object like this: 8 9```meson 10thread_dep = dependency('threads') 11``` 12 13And then you just use it in a target like this: 14 15```meson 16executable('threadedprogram', ... 17 dependencies : thread_dep) 18``` 19