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
5cfee589
Commit
5cfee589
authored
Jun 02, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./include/vlc_common.h: got rid of i_thread in VLC_COMMON_MEMBERS.
parent
f8570a69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
9 deletions
+7
-9
include/vlc_common.h
include/vlc_common.h
+1
-2
src/misc/objects.c
src/misc/objects.c
+2
-2
src/misc/threads.c
src/misc/threads.c
+4
-5
No files found.
include/vlc_common.h
View file @
5cfee589
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc_common.h,v 1.
4 2002/06/02 13:38:03
gbazin Exp $
* $Id: vlc_common.h,v 1.
5 2002/06/02 15:51:30
gbazin Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -220,7 +220,6 @@ VLC_DECLARE_STRUCT(iso639_lang)
\
/* Thread properties, if any */
\
vlc_bool_t b_thread; \
int i_thread; \
vlc_thread_t thread_id; \
vlc_mutex_t thread_lock; \
vlc_cond_t thread_wait; \
...
...
src/misc/objects.c
View file @
5cfee589
...
...
@@ -2,7 +2,7 @@
* objects.c: vlc_object_t handling
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: objects.c,v 1.
4 2002/06/02 09:03:54 sam
Exp $
* $Id: objects.c,v 1.
5 2002/06/02 15:51:30 gbazin
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
...
...
@@ -484,7 +484,7 @@ static void vlc_dumpstructure_inner( vlc_object_t *p_this,
psz_thread
[
0
]
=
'\0'
;
if
(
p_this
->
b_thread
)
{
snprintf
(
psz_thread
,
20
,
" (thread %d)"
,
p_this
->
i_threa
d
);
snprintf
(
psz_thread
,
20
,
" (thread %d)"
,
(
int
)
p_this
->
thread_i
d
);
psz_thread
[
19
]
=
'\0'
;
}
...
...
src/misc/threads.c
View file @
5cfee589
...
...
@@ -2,7 +2,7 @@
* threads.c : threads implementation for the VideoLAN client
*****************************************************************************
* Copyright (C) 1999, 2000, 2001, 2002 VideoLAN
* $Id: threads.c,v 1.
4 2002/06/01 18:04:49 sam
Exp $
* $Id: threads.c,v 1.
5 2002/06/02 15:51:30 gbazin
Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -404,13 +404,13 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
{
unsigned
threadID
;
/* When using the MSVCRT C library you have to use the _beginthreadex
* function instead of CreateThread, otherwise you'll end up with
memory
*
leaks and the signal functions not working */
* function instead of CreateThread, otherwise you'll end up with
* memory
leaks and the signal functions not working */
p_this
->
thread_id
=
(
HANDLE
)
_beginthreadex
(
NULL
,
0
,
(
PTHREAD_START
)
func
,
(
void
*
)
p_this
,
0
,
&
threadID
);
}
i_ret
=
(
p_this
->
thread_id
?
0
:
1
);
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
...
...
@@ -444,7 +444,6 @@ int __vlc_thread_create( vlc_object_t *p_this, char * psz_file, int i_line,
p_this
->
thread_id
,
psz_name
,
psz_file
,
i_line
);
p_this
->
b_thread
=
1
;
p_this
->
i_thread
=
p_this
->
thread_id
;
/* We hope the cast will work */
if
(
b_wait
)
{
...
...
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