Skip to content

Unmanaged Flag - #32

Merged
jasssonpet merged 1 commit into
masterfrom
KristinaKoeva/AddUnmanagedFlag
Nov 4, 2015
Merged

Unmanaged Flag#32
jasssonpet merged 1 commit into
masterfrom
KristinaKoeva/AddUnmanagedFlag

Conversation

@KristinaKoeva

Copy link
Copy Markdown
Contributor

Add an unmanaged flag so that when we don't know how to memory manage an item, we could return a special Unmanaged type

Comment thread src/Meta/MetaFactory.cpp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we decide not to memory manage TypeInterface and TypeId? It seems that now e.g. dispatch_queue_t CFReadStreamCopyDispatchQueue(CFReadStreamRef stream) isn't memory managed but ARC is able to do so.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't find a possible scenario where we should explicitly memory manage something that is TypeInterface or TypeId.
I experimented and created a method that returns a dispatch_queue_t and it seems that it is returned autoreleased so should we memory manage it ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that we should, if we can.

@jasssonpet

Copy link
Copy Markdown
Contributor

Updating the TypeScript declarations generator would ease the transition to the new API.

@jasssonpet

Copy link
Copy Markdown
Contributor

👍 from me

@KristinaKoeva
KristinaKoeva force-pushed the KristinaKoeva/AddUnmanagedFlag branch from 9db30bc to 0326e74 Compare November 3, 2015 14:37
… an item, we could return a special Unmanaged type
@KristinaKoeva
KristinaKoeva force-pushed the KristinaKoeva/AddUnmanagedFlag branch from 0326e74 to cac579a Compare November 3, 2015 14:38
jasssonpet added a commit that referenced this pull request Nov 4, 2015
@jasssonpet
jasssonpet merged commit bb2ff84 into master Nov 4, 2015
@jasssonpet
jasssonpet deleted the KristinaKoeva/AddUnmanagedFlag branch November 4, 2015 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants