aquire number of thread to create from hardware_concurrency()

This commit is contained in:
Ryou Ezoe 2016-03-02 19:02:02 +09:00
parent 76b1fcd26d
commit b68776cc2a

View File

@ -65,7 +65,7 @@ void square_am_signal(float time, float frequency)
int main()
{
for ( unsigned i = 0 ; i < 8 ; ++i )
for ( unsigned i = 0 ; i < std::thread::hardware_concurrency() ; ++i )
{
std::thread t( boost_song ) ;
t.detach() ;