core(ocl): do not split refcount operations / compare
authorAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 30 Jul 2018 11:09:50 +0000 (14:09 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 30 Jul 2018 12:42:09 +0000 (15:42 +0300)
commite90e398e7a64f48757c3a0e365256aef69f80dd2
tree892d3ca534afc7fdb7ed7264e918a6be86602203
parent2f0fc920dd51a3627779dcc7458abdbb09c933e6
core(ocl): do not split refcount operations / compare

- check result from CV_XADD() directly
- decrease urefcount after unmap() call only
modules/core/src/umatrix.cpp