Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
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>
# ifdef DEBUG
# if
n
def
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
def
ined(
DEBUG
)
# if
n
def
N
DEBUG
{
/* 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
def
ined(
DEBUG
)
# if
n
def
N
DEBUG
/* 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