Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
32f978ff
Commit
32f978ff
authored
Oct 16, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3337 from tstellarAMD:2.4-ocl-context-cleanup-fix
parents
6b0cd392
8f3b876e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
cl_context.cpp
modules/ocl/src/cl_context.cpp
+13
-12
No files found.
modules/ocl/src/cl_context.cpp
View file @
32f978ff
...
...
@@ -11,7 +11,7 @@
// For Open Source Computer Vision Library
//
// Copyright (C) 2010-2012, Institute Of Software Chinese Academy Of Science, all rights reserved.
// Copyright (C) 2010-201
2
, Advanced Micro Devices, Inc., all rights reserved.
// Copyright (C) 2010-201
4
, Advanced Micro Devices, Inc., all rights reserved.
// Copyright (C) 2010-2012, Multicoreware, Inc., all rights reserved.
// Third party copyrights are property of their respective owners.
//
...
...
@@ -70,17 +70,6 @@ struct __Module
cv
::
Mutex
initializationMutex
;
cv
::
Mutex
currentContextMutex
;
};
static
__Module
__module
;
cv
::
Mutex
&
getInitializationMutex
()
{
return
__module
.
initializationMutex
;
}
static
cv
::
Mutex
&
getCurrentContextMutex
()
{
return
__module
.
currentContextMutex
;
}
static
bool
parseOpenCLVersion
(
const
std
::
string
&
versionStr
,
int
&
major
,
int
&
minor
)
{
...
...
@@ -245,6 +234,18 @@ struct DeviceInfoImpl: public DeviceInfo
static
std
::
vector
<
PlatformInfoImpl
>
global_platforms
;
static
std
::
vector
<
DeviceInfoImpl
>
global_devices
;
static
__Module
__module
;
cv
::
Mutex
&
getInitializationMutex
()
{
return
__module
.
initializationMutex
;
}
static
cv
::
Mutex
&
getCurrentContextMutex
()
{
return
__module
.
currentContextMutex
;
}
static
void
split
(
const
std
::
string
&
s
,
char
delim
,
std
::
vector
<
std
::
string
>
&
elems
)
{
std
::
stringstream
ss
(
s
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment