Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
58a10e0e
Commit
58a10e0e
authored
Apr 21, 2014
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compat/w32pthreads: add return value to pthread_cond_init().
parent
96470ca2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
w32pthreads.h
compat/w32pthreads.h
+6
-5
No files found.
compat/w32pthreads.h
View file @
58a10e0e
...
...
@@ -134,28 +134,29 @@ typedef struct win32_cond_t {
volatile
int
is_broadcast
;
}
win32_cond_t
;
static
void
pthread_cond_init
(
pthread_cond_t
*
cond
,
const
void
*
unused_attr
)
static
int
pthread_cond_init
(
pthread_cond_t
*
cond
,
const
void
*
unused_attr
)
{
win32_cond_t
*
win32_cond
=
NULL
;
if
(
cond_init
)
{
cond_init
(
cond
);
return
;
return
0
;
}
/* non native condition variables */
win32_cond
=
av_mallocz
(
sizeof
(
win32_cond_t
));
if
(
!
win32_cond
)
return
;
return
ENOMEM
;
cond
->
ptr
=
win32_cond
;
win32_cond
->
semaphore
=
CreateSemaphore
(
NULL
,
0
,
0x7fffffff
,
NULL
);
if
(
!
win32_cond
->
semaphore
)
return
;
return
ENOMEM
;
win32_cond
->
waiters_done
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
NULL
);
if
(
!
win32_cond
->
waiters_done
)
return
;
return
ENOMEM
;
pthread_mutex_init
(
&
win32_cond
->
mtx_waiter_count
,
NULL
);
pthread_mutex_init
(
&
win32_cond
->
mtx_broadcast
,
NULL
);
return
0
;
}
static
void
pthread_cond_destroy
(
pthread_cond_t
*
cond
)
...
...
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