Skip to content

Commit f2bbd6b

Browse files
tachoknightrokhinip
authored andcommitted
Changed __gettid() to _gettid() to be consistent with existing naming conventions
Signed-off-by: Kim Topley <ktopley@apple.com>
1 parent 2fc6b18 commit f2bbd6b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/queue.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7236,21 +7236,21 @@ libdispatch_init(void)
72367236
#ifdef SYS_gettid
72377237
DISPATCH_ALWAYS_INLINE
72387238
static inline pid_t
7239-
__gettid(void)
7239+
_gettid(void)
72407240
{
72417241
return (pid_t)syscall(SYS_gettid);
72427242
}
72437243
#elif defined(__FreeBSD__)
72447244
DISPATCH_ALWAYS_INLINE
72457245
static inline pid_t
7246-
__gettid(void)
7246+
_gettid(void)
72477247
{
72487248
return (pid_t)pthread_getthreadid_np();
72497249
}
72507250
#elif defined(_WIN32)
72517251
DISPATCH_ALWAYS_INLINE
72527252
static inline DWORD
7253-
__gettid(void)
7253+
_gettid(void)
72547254
{
72557255
return GetCurrentThreadId();
72567256
}
@@ -7365,7 +7365,7 @@ libdispatch_tsd_init(void)
73657365
#else
73667366
FlsSetValue(__dispatch_tsd_key, &__dispatch_tsd);
73677367
#endif // defined(_WIN32)
7368-
__dispatch_tsd.tid = __gettid();
7368+
__dispatch_tsd.tid = _gettid();
73697369
}
73707370

73717371
DISPATCH_NOTHROW

src/unifdef.oD6HOK renamed to src/unifdef.Wwwa0y

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7843,21 +7843,21 @@ libdispatch_init(void)
78437843
#ifdef SYS_gettid
78447844
DISPATCH_ALWAYS_INLINE
78457845
static inline pid_t
7846-
__gettid(void)
7846+
_gettid(void)
78477847
{
78487848
return (pid_t)syscall(SYS_gettid);
78497849
}
78507850
#elif defined(__FreeBSD__)
78517851
DISPATCH_ALWAYS_INLINE
78527852
static inline pid_t
7853-
__gettid(void)
7853+
_gettid(void)
78547854
{
78557855
return (pid_t)pthread_getthreadid_np();
78567856
}
78577857
#elif defined(_WIN32)
78587858
DISPATCH_ALWAYS_INLINE
78597859
static inline DWORD
7860-
__gettid(void)
7860+
_gettid(void)
78617861
{
78627862
return GetCurrentThreadId();
78637863
}
@@ -7972,7 +7972,7 @@ libdispatch_tsd_init(void)
79727972
#else
79737973
FlsSetValue(__dispatch_tsd_key, &__dispatch_tsd);
79747974
#endif // defined(_WIN32)
7975-
__dispatch_tsd.tid = __gettid();
7975+
__dispatch_tsd.tid = _gettid();
79767976
}
79777977

79787978
DISPATCH_NOTHROW

0 commit comments

Comments
 (0)