Skip to content

Commit 851177c

Browse files
authored
[OpenMP][NFC] Remove unused __kmp_dispatch_lock global (#127686)
1 parent b1f882f commit 851177c

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
@@ -3408,7 +3408,6 @@ extern kmp_bootstrap_lock_t
34083408
__kmp_threads expansion to co-exist */
34093409

34103410
extern kmp_lock_t __kmp_global_lock; /* control OS/global access */
3411-
extern kmp_queuing_lock_t __kmp_dispatch_lock; /* control dispatch access */
34123411
extern kmp_lock_t __kmp_debug_lock; /* control I/O access for KMP_DEBUG */
34133412

34143413
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
@@ -488,8 +488,6 @@ KMP_BOOTSTRAP_LOCK_INIT(__kmp_tp_cached_lock);
488488
KMP_ALIGN_CACHE_INTERNODE
489489
KMP_LOCK_INIT(__kmp_global_lock); /* Control OS/global access */
490490
KMP_ALIGN_CACHE_INTERNODE
491-
kmp_queuing_lock_t __kmp_dispatch_lock; /* Control dispatch access */
492-
KMP_ALIGN_CACHE_INTERNODE
493491
KMP_LOCK_INIT(__kmp_debug_lock); /* Control I/O access for KMP_DEBUG */
494492
#else
495493
KMP_ALIGN_CACHE
@@ -508,8 +506,6 @@ KMP_BOOTSTRAP_LOCK_INIT(__kmp_tp_cached_lock);
508506
KMP_ALIGN(128)
509507
KMP_LOCK_INIT(__kmp_global_lock); /* Control OS/global access */
510508
KMP_ALIGN(128)
511-
kmp_queuing_lock_t __kmp_dispatch_lock; /* Control dispatch access */
512-
KMP_ALIGN(128)
513509
KMP_LOCK_INIT(__kmp_debug_lock); /* Control I/O access for KMP_DEBUG */
514510
#endif
515511

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)