-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
assertIsCurrent(WorkQueue::main()) will never assert
https://bugs.webkit.org/show_bug.cgi?id=261139 rdar://114970446 Reviewed by Kimmo Kinnunen. Initialise the WorkQueue threadID to 1 when creating WorkQueue::main. We can make this assumption as the first thread ever created is the Main Thread. Simplify WorkQueue::threadLikeAssertion() now that WorkQueue::m_threadID is always set to either the RunLoop's uid or the dispatch_queue sequence id. Add API test. * Source/WTF/wtf/ThreadAssertions.h: * Source/WTF/wtf/WorkQueue.cpp: (WTF::WorkQueue::threadLikeAssertion const): * Source/WTF/wtf/cocoa/WorkQueueCocoa.cpp: (WTF::WorkQueueBase::WorkQueueBase): (WTF::WorkQueueBase::platformInitialize): (WTF::WorkQueue::threadLikeAssertion const): Deleted. * Source/WTF/wtf/generic/WorkQueueGeneric.cpp: (WTF::WorkQueueBase::WorkQueueBase): (WTF::WorkQueue::threadLikeAssertion const): Deleted. * Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/267640@main
- Loading branch information
Showing
5 changed files
with
36 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters