rename symmetric_coroutine_self -> symmetric_coroutine_yield

This commit is contained in:
Oliver Kowalke
2014-02-05 17:38:09 +01:00
parent 224bcab410
commit baabddae44
22 changed files with 201 additions and 201 deletions

View File

@@ -22,7 +22,7 @@ void bind_to_processor( unsigned int n)
CPU_ZERO( & cpuset);
CPU_SET( n, & cpuset);
int errno_( ::pthread_setaffinity_np( ::pthread_self(), sizeof( cpuset), & cpuset) );
int errno_( ::pthread_setaffinity_np( ::pthread_yield(), sizeof( cpuset), & cpuset) );
if ( errno_ != 0)
throw std::runtime_error("::pthread_setaffinity_np() failed");
}