Merge pull request #20536 from hedgepigdaniel:fix/ocl-context-create-ownership
authorDaniel Playfair Cal <daniel.playfair.cal@gmail.com>
Wed, 11 Aug 2021 17:58:08 +0000 (03:58 +1000)
committerGitHub <noreply@github.com>
Wed, 11 Aug 2021 17:58:08 +0000 (20:58 +0300)
commit4d63a89fa6611a69c1999328375f39afde1b1696
tree3f30482c960a5f9bace9b34cda3fbbf3b99bff91
parentaaca4987c9ffe12e9e486d40ae264859caed89df
Merge pull request #20536 from hedgepigdaniel:fix/ocl-context-create-ownership

docs(core/ocl): clarify ownership of arguments passed into OpenCL related functions

* docs(core/ocl): clarify ownership in OpenCLExecutionContext::create

Although it is technically true that OpenCLExecutionContext::create
calls `clRetainContext` on its context argument, it is misleading
because it does not increase the reference count overall. Clarify that
the ownership of one reference of the passed context and device is
taken.

* docs(core/ocl): document ownership transfer in ocl::Device::fromHandle
modules/core/include/opencv2/core/ocl.hpp