mirror of
https://github.com/boostorg/coroutine.git
synced 2026-02-02 08:42:16 +00:00
rename symmetric_coroutine_self -> symmetric_coroutine_yield
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user