Skip to content

Commit 38b2c60

Browse files
committed
dispatch: host declaration of dispatch_pthread_root_queue_observer_hooks_s
This type is referenced before the declaration. This hoists the declaration earlier to have the type available when used.
1 parent cfd2fc6 commit 38b2c60

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/queue_internal.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,13 @@ DISPATCH_OPTIONS(dispatch_queue_flags, uint32_t,
445445
#pragma mark -
446446
#pragma mark dispatch_queue_t
447447

448+
typedef struct dispatch_pthread_root_queue_observer_hooks_s {
449+
void (*queue_will_execute)(dispatch_queue_t queue);
450+
void (*queue_did_execute)(dispatch_queue_t queue);
451+
} dispatch_pthread_root_queue_observer_hooks_s;
452+
typedef dispatch_pthread_root_queue_observer_hooks_s
453+
*dispatch_pthread_root_queue_observer_hooks_t;
454+
448455
typedef struct dispatch_queue_specific_s {
449456
const void *dqs_key;
450457
void *dqs_ctxt;
@@ -651,13 +658,6 @@ struct dispatch_queue_global_s {
651658
} DISPATCH_CACHELINE_ALIGN;
652659

653660

654-
typedef struct dispatch_pthread_root_queue_observer_hooks_s {
655-
void (*queue_will_execute)(dispatch_queue_t queue);
656-
void (*queue_did_execute)(dispatch_queue_t queue);
657-
} dispatch_pthread_root_queue_observer_hooks_s;
658-
typedef dispatch_pthread_root_queue_observer_hooks_s
659-
*dispatch_pthread_root_queue_observer_hooks_t;
660-
661661
#ifdef __APPLE__
662662
#define DISPATCH_IOHID_SPI 1
663663

0 commit comments

Comments
 (0)