Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
b8bc6b14
Commit
b8bc6b14
authored
9 years ago
by
KO Myung-Hun
Committed by
Michael Niedermayer
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
compat/os2threads: split long lines
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
6bf5e7d3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compat/os2threads.h
+12
-5
12 additions, 5 deletions
compat/os2threads.h
with
12 additions
and
5 deletions
compat/os2threads.h
+
12
−
5
View file @
b8bc6b14
...
@@ -71,7 +71,10 @@ static void thread_entry(void *arg)
...
@@ -71,7 +71,10 @@ static void thread_entry(void *arg)
thread
->
result
=
thread
->
start_routine
(
thread
->
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
->
start_routine
=
start_routine
;
thread
->
arg
=
arg
;
thread
->
arg
=
arg
;
...
@@ -92,7 +95,8 @@ static av_always_inline int pthread_join(pthread_t thread, void **value_ptr)
...
@@ -92,7 +95,8 @@ static av_always_inline int pthread_join(pthread_t thread, void **value_ptr)
return
0
;
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
);
DosCreateMutexSem
(
NULL
,
(
PHMTX
)
mutex
,
0
,
FALSE
);
...
@@ -120,7 +124,8 @@ static av_always_inline int pthread_mutex_unlock(pthread_mutex_t *mutex)
...
@@ -120,7 +124,8 @@ static av_always_inline int pthread_mutex_unlock(pthread_mutex_t *mutex)
return
0
;
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
->
event_sem
,
DCE_POSTONE
,
FALSE
);
DosCreateEventSem
(
NULL
,
&
cond
->
ack_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)
...
@@ -156,7 +161,8 @@ static av_always_inline int pthread_cond_broadcast(pthread_cond_t *cond)
return
0
;
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
);
__atomic_increment
(
&
cond
->
wait_count
);
...
@@ -173,7 +179,8 @@ static av_always_inline int pthread_cond_wait(pthread_cond_t *cond, pthread_mute
...
@@ -173,7 +179,8 @@ static av_always_inline int pthread_cond_wait(pthread_cond_t *cond, pthread_mute
return
0
;
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
)
if
(
!
once_control
->
done
)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment