Skip to content

Commit 41b7011

Browse files
committed
base: use INVALID_HANDLE_VALUE for the nil pthread
Windows does not use POSIX threads. We emulate some of the behaviours. The thread handle type on Windows is `HANDLE` rather than `pthread_t`. Use the invalid handle instead to indicate that we do not have the value yet.
1 parent 1473d41 commit 41b7011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/Base.subproj/CFRuntime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ CF_PRIVATE Boolean __CFProcessIsRestricted() {
10711071
}
10721072

10731073
#if DEPLOYMENT_TARGET_WINDOWS
1074-
#define kNilPthreadT { nil, nil }
1074+
#define kNilPthreadT INVALID_HANDLE_VALUE
10751075
#else
10761076
#define kNilPthreadT (_CFThreadRef)0
10771077
#endif

0 commit comments

Comments
 (0)