Skip to content

Commit 0662aed

Browse files
author
Jonathan Peyton
committed
[OpenMP][NFC] Remove unused __kmp_dispatch_lock global
1 parent d9803af commit 0662aed

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

openmp/runtime/src/kmp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3415,7 +3415,6 @@ extern kmp_bootstrap_lock_t
34153415
__kmp_threads expansion to co-exist */
34163416

34173417
extern kmp_lock_t __kmp_global_lock; /* control OS/global access */
3418-
extern kmp_queuing_lock_t __kmp_dispatch_lock; /* control dispatch access */
34193418
extern kmp_lock_t __kmp_debug_lock; /* control I/O access for KMP_DEBUG */
34203419

34213420
extern enum library_type __kmp_library;

openmp/runtime/src/kmp_global.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,6 @@ KMP_BOOTSTRAP_LOCK_INIT(__kmp_tp_cached_lock);
493493
KMP_ALIGN_CACHE_INTERNODE
494494
KMP_LOCK_INIT(__kmp_global_lock); /* Control OS/global access */
495495
KMP_ALIGN_CACHE_INTERNODE
496-
kmp_queuing_lock_t __kmp_dispatch_lock; /* Control dispatch access */
497-
KMP_ALIGN_CACHE_INTERNODE
498496
KMP_LOCK_INIT(__kmp_debug_lock); /* Control I/O access for KMP_DEBUG */
499497
#else
500498
KMP_ALIGN_CACHE
@@ -513,8 +511,6 @@ KMP_BOOTSTRAP_LOCK_INIT(__kmp_tp_cached_lock);
513511
KMP_ALIGN(128)
514512
KMP_LOCK_INIT(__kmp_global_lock); /* Control OS/global access */
515513
KMP_ALIGN(128)
516-
kmp_queuing_lock_t __kmp_dispatch_lock; /* Control dispatch access */
517-
KMP_ALIGN(128)
518514
KMP_LOCK_INIT(__kmp_debug_lock); /* Control I/O access for KMP_DEBUG */
519515
#endif
520516

openmp/runtime/src/kmp_runtime.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7143,7 +7143,6 @@ static void __kmp_do_serial_initialize(void) {
71437143
__kmp_stats_init();
71447144
#endif
71457145
__kmp_init_lock(&__kmp_global_lock);
7146-
__kmp_init_queuing_lock(&__kmp_dispatch_lock);
71477146
__kmp_init_lock(&__kmp_debug_lock);
71487147
__kmp_init_atomic_lock(&__kmp_atomic_lock);
71497148
__kmp_init_atomic_lock(&__kmp_atomic_lock_1i);

0 commit comments

Comments
 (0)