diff options
author | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-03-10 09:31:21 +0000 |
---|---|---|
committer | Andrey Churbanov <Andrey.Churbanov@intel.com> | 2015-03-10 09:31:21 +0000 |
commit | 2b8ecbeeb62e790bfe7c18ee698800353382e7ab (patch) | |
tree | 960093ad1c778234076ee4f82bf50e16e0033349 /openmp/runtime/src/z_Windows_NT_util.c | |
parent | 510b6ab07c3621d519b33026ee1926b864a1ded6 (diff) | |
download | bcm5719-llvm-2b8ecbeeb62e790bfe7c18ee698800353382e7ab.tar.gz bcm5719-llvm-2b8ecbeeb62e790bfe7c18ee698800353382e7ab.zip |
cleanup: removed unused function __kmp_change_thread_affinity_mask
llvm-svn: 231778
Diffstat (limited to 'openmp/runtime/src/z_Windows_NT_util.c')
-rw-r--r-- | openmp/runtime/src/z_Windows_NT_util.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/openmp/runtime/src/z_Windows_NT_util.c b/openmp/runtime/src/z_Windows_NT_util.c index 023a4db7461..69b01be4300 100644 --- a/openmp/runtime/src/z_Windows_NT_util.c +++ b/openmp/runtime/src/z_Windows_NT_util.c @@ -1155,46 +1155,6 @@ __kmp_read_system_time( double *delta ) /* ------------------------------------------------------------------------ */ /* ------------------------------------------------------------------------ */ -/* - * Change thread to the affinity mask pointed to by affin_mask argument - * and return a pointer to the old value in the old_mask argument, if argument - * is non-NULL. - */ - -void -__kmp_change_thread_affinity_mask( int gtid, kmp_affin_mask_t *new_mask, - kmp_affin_mask_t *old_mask ) -{ - kmp_info_t *th = __kmp_threads[ gtid ]; - - KMP_DEBUG_ASSERT( *new_mask != 0 ); - - if ( old_mask != NULL ) { - *old_mask = SetThreadAffinityMask( th -> th.th_info.ds.ds_thread, *new_mask ); - - if (! *old_mask ) { - DWORD error = GetLastError(); - __kmp_msg( - kmp_ms_fatal, - KMP_MSG( CantSetThreadAffMask ), - KMP_ERR( error ), - __kmp_msg_null - ); - } - } - if (__kmp_affinity_verbose) - KMP_INFORM( ChangeAffMask, "KMP_AFFINITY (Bind)", gtid, *old_mask, *new_mask ); - - /* Make sure old value is correct in thread data structures */ - KMP_DEBUG_ASSERT( old_mask != NULL && *old_mask == *(th -> th.th_affin_mask )); - - KMP_CPU_COPY(th -> th.th_affin_mask, new_mask); -} - - -/* ------------------------------------------------------------------------ */ -/* ------------------------------------------------------------------------ */ - void * __stdcall __kmp_launch_worker( void *arg ) { |