Skip to content

CFRunLoop: mark a new observer valid - #140

Open
DTW-Thalion wants to merge 2 commits into
gnustep:masterfrom
DTW-Thalion:fix/cfrunloop-observer-valid
Open

CFRunLoop: mark a new observer valid#140
DTW-Thalion wants to merge 2 commits into
gnustep:masterfrom
DTW-Thalion:fix/cfrunloop-observer-valid

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

CFRunLoopObserverCreate initialised the observer's activities, order and callback but never set its valid flag, so CFRunLoopObserverIsValid returned false for a newly created observer (the timer and source creators set the flag).

Set the flag when the observer is created.

Tests/CFRunLoop/observer_valid.m checks that a new observer is valid and an invalidated one is not, verified against Apple CoreFoundation.

CFRunLoopObserverCreate never set the valid flag, so CFRunLoopObserverIsValid
returned false for a newly created observer.
@DTW-Thalion
DTW-Thalion force-pushed the fix/cfrunloop-observer-valid branch from 46bbcc2 to 706f282 Compare July 24, 2026 15:22
@DTW-Thalion DTW-Thalion reopened this Jul 24, 2026
@DTW-Thalion DTW-Thalion reopened this Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant