Skip to content

Uniqueptr#8

Closed
umar456 wants to merge 3 commits intomasterfrom
uniqueptr
Closed

Uniqueptr#8
umar456 wants to merge 3 commits intomasterfrom
uniqueptr

Conversation

@umar456
Copy link
Owner

@umar456 umar456 commented Oct 15, 2017

No description provided.

Patrick Lavin and others added 3 commits October 12, 2017 03:17
This commit builds on the previous one by using RAII to manage memory.
memAlloc<T> returns a unique_ptr<T> which will automatically free memory when it
goes out of scope. If memory needs to persist, release() is called but only
after any functions that may fail have finished. Due to the signature of
Param<T> many tmp variables are used at this time, named *_alloc. Note that
cuda/kernel/orb.hpp has yet to be updated to use RAII.
@umar456 umar456 closed this Oct 18, 2017
@umar456 umar456 reopened this Oct 18, 2017
@umar456 umar456 closed this Oct 18, 2017
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.

1 participant