Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
e6a8d661
Commit
e6a8d661
authored
Oct 01, 2001
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error checks in debug mode : pthread ERRORCHECK_MUTEX and MALLOC_CHECK_=2.
parent
d8797a48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
Makefile
Makefile
+1
-1
include/threads.h
include/threads.h
+15
-1
src/interface/main.c
src/interface/main.c
+8
-1
No files found.
Makefile
View file @
e6a8d661
...
...
@@ -174,7 +174,7 @@ endif
$(INSTALL)
-m
644 share/
*
.xpm
$(DESTDIR)$(datadir)
/videolan
vlc-uninstall
:
rm
vlc
$(DESTDIR)$(bindir)
/vlc
rm
$(DESTDIR)$(bindir)
/vlc
ifneq
(,$(ALIASES))
for
alias
in
$(ALIASES)
;
do if
test
$$
alias
;
then
rm
-f
$(DESTDIR)$(bindir)
/
$$
alias
;
fi
;
done
endif
...
...
include/threads.h
View file @
e6a8d661
...
...
@@ -3,7 +3,7 @@
* This header provides a portable threads implementation.
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: threads.h,v 1.2
4 2001/08/19 23:35:13 sam
Exp $
* $Id: threads.h,v 1.2
5 2001/10/01 12:48:01 massiot
Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -34,6 +34,8 @@
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
/* pthreads (like Linux & BSD) */
# include <pthread.h>
/* This is not prototyped under Linux, though it exists. */
int
pthread_mutexattr_setkind_np
(
pthread_mutexattr_t
*
attr
,
int
kind
);
#elif defined( HAVE_CTHREADS_H )
/* GNUMach */
# include <cthreads.h>
...
...
@@ -267,6 +269,18 @@ static __inline__ int vlc_mutex_init( vlc_mutex_t *p_mutex )
return
pth_mutex_init
(
p_mutex
);
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
# if defined(DEBUG) && defined(SYS_LINUX)
/* Create error-checking mutex to detect threads problems more easily. */
pthread_mutexattr_t
attr
;
int
i_result
;
pthread_mutexattr_init
(
&
attr
);
pthread_mutexattr_setkind_np
(
&
attr
,
PTHREAD_MUTEX_ERRORCHECK_NP
);
i_result
=
pthread_mutex_init
(
p_mutex
,
&
attr
);
pthread_mutexattr_destroy
(
&
attr
);
return
(
i_result
);
# endif
return
pthread_mutex_init
(
p_mutex
,
NULL
);
#elif defined( HAVE_CTHREADS_H )
...
...
src/interface/main.c
View file @
e6a8d661
...
...
@@ -4,7 +4,7 @@
* and spawn threads.
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: main.c,v 1.11
4 2001/09/25 11:46:14
massiot Exp $
* $Id: main.c,v 1.11
5 2001/10/01 12:48:01
massiot Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -289,8 +289,15 @@ int main( int i_argc, char *ppsz_argv[], char *ppsz_env[] )
*/
#if defined( SYS_BEOS ) || defined( SYS_DARWIN )
system_Init
(
&
i_argc
,
ppsz_argv
,
ppsz_env
);
#elif defined( WIN32 )
_fmode
=
_O_BINARY
;
/* sets the default file-translation mode on Win32 */
#elif defined( SYS_LINUX )
# ifdef DEBUG
/* Activate malloc checking routines to detect heap corruptions. */
main_PutIntVariable
(
"MALLOC_CHECK_"
,
2
);
# endif
#endif
/*
...
...
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