Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
ffmpeg
Commits
c6bf660b
Commit
c6bf660b
authored
May 10, 2014
by
Matt Oliver
Committed by
Michael Niedermayer
May 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opencl: Make init_mtx static with volatile lock
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
fa23190a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
opencl.c
libavutil/opencl.c
+2
-2
No files found.
libavutil/opencl.c
View file @
c6bf660b
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
#endif
#endif
#include "atomic.h"
#include "atomic.h"
static
pthread_mutex_t
*
atomic_opencl_lock
=
NULL
;
static
volatile
pthread_mutex_t
*
atomic_opencl_lock
=
NULL
;
#define LOCK_OPENCL pthread_mutex_lock(atomic_opencl_lock)
#define LOCK_OPENCL pthread_mutex_lock(atomic_opencl_lock)
#define UNLOCK_OPENCL pthread_mutex_unlock(atomic_opencl_lock)
#define UNLOCK_OPENCL pthread_mutex_unlock(atomic_opencl_lock)
#else
#else
...
@@ -326,7 +326,7 @@ void av_opencl_free_device_list(AVOpenCLDeviceList **device_list)
...
@@ -326,7 +326,7 @@ void av_opencl_free_device_list(AVOpenCLDeviceList **device_list)
av_freep
(
device_list
);
av_freep
(
device_list
);
}
}
inline
int
init_opencl_mtx
(
void
)
static
inline
int
init_opencl_mtx
(
void
)
{
{
#if HAVE_THREADS
#if HAVE_THREADS
if
(
!
atomic_opencl_lock
)
{
if
(
!
atomic_opencl_lock
)
{
...
...
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