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
b8bc6b14
Commit
b8bc6b14
authored
Feb 14, 2016
by
KO Myung-Hun
Committed by
Michael Niedermayer
Feb 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compat/os2threads: split long lines
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
6bf5e7d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
os2threads.h
compat/os2threads.h
+12
-5
No files found.
compat/os2threads.h
View file @
b8bc6b14
...
...
@@ -71,7 +71,10 @@ static void thread_entry(void *arg)
thread
->
result
=
thread
->
start_routine
(
thread
->
arg
);
}
static
av_always_inline
int
pthread_create
(
pthread_t
*
thread
,
const
pthread_attr_t
*
attr
,
void
*
(
*
start_routine
)(
void
*
),
void
*
arg
)
static
av_always_inline
int
pthread_create
(
pthread_t
*
thread
,
const
pthread_attr_t
*
attr
,
void
*
(
*
start_routine
)(
void
*
),
void
*
arg
)
{
thread
->
start_routine
=
start_routine
;
thread
->
arg
=
arg
;
...
...
@@ -92,7 +95,8 @@ static av_always_inline int pthread_join(pthread_t thread, void **value_ptr)
return
0
;
}
static
av_always_inline
int
pthread_mutex_init
(
pthread_mutex_t
*
mutex
,
const
pthread_mutexattr_t
*
attr
)
static
av_always_inline
int
pthread_mutex_init
(
pthread_mutex_t
*
mutex
,
const
pthread_mutexattr_t
*
attr
)
{
DosCreateMutexSem
(
NULL
,
(
PHMTX
)
mutex
,
0
,
FALSE
);
...
...
@@ -120,7 +124,8 @@ static av_always_inline int pthread_mutex_unlock(pthread_mutex_t *mutex)
return
0
;
}
static
av_always_inline
int
pthread_cond_init
(
pthread_cond_t
*
cond
,
const
pthread_condattr_t
*
attr
)
static
av_always_inline
int
pthread_cond_init
(
pthread_cond_t
*
cond
,
const
pthread_condattr_t
*
attr
)
{
DosCreateEventSem
(
NULL
,
&
cond
->
event_sem
,
DCE_POSTONE
,
FALSE
);
DosCreateEventSem
(
NULL
,
&
cond
->
ack_sem
,
DCE_POSTONE
,
FALSE
);
...
...
@@ -156,7 +161,8 @@ static av_always_inline int pthread_cond_broadcast(pthread_cond_t *cond)
return
0
;
}
static
av_always_inline
int
pthread_cond_wait
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
)
static
av_always_inline
int
pthread_cond_wait
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
)
{
__atomic_increment
(
&
cond
->
wait_count
);
...
...
@@ -173,7 +179,8 @@ static av_always_inline int pthread_cond_wait(pthread_cond_t *cond, pthread_mute
return
0
;
}
static
av_always_inline
int
pthread_once
(
pthread_once_t
*
once_control
,
void
(
*
init_routine
)(
void
))
static
av_always_inline
int
pthread_once
(
pthread_once_t
*
once_control
,
void
(
*
init_routine
)(
void
))
{
if
(
!
once_control
->
done
)
{
...
...
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