執行緒
Meson 提供一個非常簡單的符號簡寫方式,用來在你的建構目標上啟用執行緒支援。首先,像這樣取得執行緒相依性物件:
thread_dep = dependency('threads')
然後你只需要像這樣在目標中使用它:
executable('threadedprogram', ...
dependencies : thread_dep)
搜尋結果如下:
Meson 提供一個非常簡單的符號簡寫方式,用來在你的建構目標上啟用執行緒支援。首先,像這樣取得執行緒相依性物件:
thread_dep = dependency('threads')
然後你只需要像這樣在目標中使用它:
executable('threadedprogram', ...
dependencies : thread_dep)
搜尋結果如下: