Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
9e704fa3
Commit
9e704fa3
authored
Feb 09, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
threads: Consistenly use NDEBUG
parent
b3929833
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
include/vlc_threads.h
include/vlc_threads.h
+1
-1
src/misc/threads.c
src/misc/threads.c
+3
-3
No files found.
include/vlc_threads.h
View file @
9e704fa3
...
...
@@ -52,7 +52,7 @@
# include <pthread.h>
/* Needed for pthread_cond_timedwait */
# include <errno.h>
# if
def
DEBUG
# if
ndef N
DEBUG
# include <time.h>
# endif
...
...
src/misc/threads.c
View file @
9e704fa3
...
...
@@ -281,7 +281,7 @@ int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex )
return
B_OK
;
#elif defined( LIBVLC_USE_PTHREAD )
# if
defined(DEBUG)
# if
ndef NDEBUG
{
/* Create error-checking mutex to detect problems more easily. */
pthread_mutexattr_t
attr
;
...
...
@@ -298,7 +298,7 @@ int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex )
pthread_mutexattr_destroy
(
&
attr
);
return
(
i_result
);
}
# endif
# endif
/* NDEBUG */
return
pthread_mutex_init
(
&
p_mutex
->
mutex
,
NULL
);
#endif
...
...
@@ -318,7 +318,7 @@ int __vlc_mutex_init_recursive( vlc_object_t *p_this, vlc_mutex_t *p_mutex )
int
i_result
;
pthread_mutexattr_init
(
&
attr
);
# if
defined(DEBUG)
# if
ndef NDEBUG
/* Create error-checking mutex to detect problems more easily. */
# if defined(SYS_LINUX)
pthread_mutexattr_setkind_np
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK_NP
);
...
...
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