{"id":60088,"library":"boost-thread","title":"Boost.Thread","description":"Boost thread module provides portable C++ multithreading and synchronization primitives.","status":"active","version":"1.90.0","language":"cpp","source_language":null,"source_url":null,"tags":["boost","threading","multithreading","concurrency"],"install":[{"cmd":"vcpkg install boost-thread","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(boost_thread CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE Boost::thread)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"boost/thread.hpp","correct":"#include <boost/thread.hpp>"}],"quickstart":{"code":"#include <boost/thread.hpp>\n#include <iostream>\n\nvoid worker() {\n    std::cout << \"Hello from thread!\" << std::endl;\n}\n\nint main() {\n    boost::thread t(worker);\n    t.join();\n    return 0;\n}","lang":"cpp","description":"Create and join a thread"},"warnings":[{"fix":"Ensure you link with Boost::thread and Boost::chrono in CMake.","message":"Boost.Thread requires linking against the boost_thread and boost_chrono libraries; header-only usage is not supported.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'boost':2,12 'boost.thread':1 'c':7 'concurr':15 'modul':4 'multithread':8,14 'portabl':6 'primit':11 'provid':5 'synchron':10 'thread':3,13","created_at":"2026-06-16T19:16:10.010501+00:00","updated_at":"2026-06-16T19:16:10.010501+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}