Skip to content

Commit

Permalink
aquire number of thread to create from hardware_concurrency()
Browse files Browse the repository at this point in the history
  • Loading branch information
EzoeRyou committed Mar 2, 2016
1 parent 76b1fcd commit b68776c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ;
Expand Down

0 comments on commit b68776c

Please sign in to comment.