/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/boost/tools/boost_install/test/thread/quick.cpp
26 строк
471 B
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
// Copyright 2017, 2018 Peter Dimov. // // Distributed under the Boost Software License, Version 1.0. // // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt #include <boost/thread.hpp> #include <boost/core/lightweight_test.hpp> void f( int & x, int y ) { x = y; } int main() { int x = 0; boost::thread th( f, boost::ref( x ), 12 ); th.join(); BOOST_TEST_EQ( x, 12 ); return boost::report_errors(); }