Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
b0c5b0a6
Commit
b0c5b0a6
authored
Sep 17, 2007
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factorize [22111]
parent
0d41ec4c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
src/misc/threads.c
src/misc/threads.c
+2
-12
No files found.
src/misc/threads.c
View file @
b0c5b0a6
...
@@ -297,31 +297,21 @@ int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex )
...
@@ -297,31 +297,21 @@ int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex )
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
# if defined(DEBUG)
# if defined(DEBUG)
# if defined(SYS_LINUX)
{
{
/* Create error-checking mutex to detect problems more easily. */
/* Create error-checking mutex to detect problems more easily. */
pthread_mutexattr_t
attr
;
pthread_mutexattr_t
attr
;
int
i_result
;
int
i_result
;
pthread_mutexattr_init
(
&
attr
);
pthread_mutexattr_init
(
&
attr
);
# if defined(SYS_LINUX)
pthread_mutexattr_setkind_np
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK_NP
);
pthread_mutexattr_setkind_np
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK_NP
);
i_result
=
pthread_mutex_init
(
&
p_mutex
->
mutex
,
&
attr
);
pthread_mutexattr_destroy
(
&
attr
);
return
(
i_result
);
}
# else
# else
{
/* Create error-checking mutex to detect problems more easily. */
pthread_mutexattr_t
attr
;
int
i_result
;
pthread_mutexattr_init
(
&
attr
);
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK
);
pthread_mutexattr_settype
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK
);
# endif
i_result
=
pthread_mutex_init
(
&
p_mutex
->
mutex
,
&
attr
);
i_result
=
pthread_mutex_init
(
&
p_mutex
->
mutex
,
&
attr
);
pthread_mutexattr_destroy
(
&
attr
);
pthread_mutexattr_destroy
(
&
attr
);
return
(
i_result
);
return
(
i_result
);
}
}
# endif
# endif
# endif
return
pthread_mutex_init
(
&
p_mutex
->
mutex
,
NULL
);
return
pthread_mutex_init
(
&
p_mutex
->
mutex
,
NULL
);
...
...
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