Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
56cf417f
Commit
56cf417f
authored
Jul 25, 2002
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./include/threads_funcs.h: Win32 compilation fix.
parent
5ce614e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
ChangeLog
ChangeLog
+1
-0
include/threads_funcs.h
include/threads_funcs.h
+10
-12
No files found.
ChangeLog
View file @
56cf417f
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
0.4.3
0.4.3
Fri
,
26
Jul
2002
00
:
03
:
13
+
0200
Fri
,
26
Jul
2002
00
:
03
:
13
+
0200
*
./
include
/
threads_funcs
.
h
:
Win32
compilation
fix
.
*
./
plugins
/
macosx
/
vout_macosx
.
m
:
fixed
_the_
bug
with
QuickTime
6.
*
./
plugins
/
macosx
/
vout_macosx
.
m
:
fixed
_the_
bug
with
QuickTime
6.
*
./
plugins
/
access
/
http
.
c
:
we
are
now
parsing
the
http
return
code
and
*
./
plugins
/
access
/
http
.
c
:
we
are
now
parsing
the
http
return
code
and
failing
cleanly
if
it
is
>=
400.
failing
cleanly
if
it
is
>=
400.
...
...
include/threads_funcs.h
View file @
56cf417f
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* This header provides a portable threads implementation.
* This header provides a portable threads implementation.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
* $Id: threads_funcs.h,v 1.4.2.
1 2002/06/17 08:37:56
sam Exp $
* $Id: threads_funcs.h,v 1.4.2.
2 2002/07/25 22:23:52
sam Exp $
*
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
@@ -364,13 +364,11 @@ static inline int vlc_cond_init( vlc_cond_t *p_condvar )
...
@@ -364,13 +364,11 @@ static inline int vlc_cond_init( vlc_cond_t *p_condvar )
p_condvar
->
signal
=
NULL
;
p_condvar
->
signal
=
NULL
;
/* Create an auto-reset event and a manual-reset event. */
/* Create an auto-reset event and a manual-reset event. */
p_condvar
->
p_events
[
SIGNAL
]
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
p_condvar
->
p_events
[
0
]
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
p_condvar
->
p_events
[
BROADCAST
]
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
NULL
);
p_condvar
->
p_events
[
1
]
=
CreateEvent
(
NULL
,
TRUE
,
FALSE
,
NULL
);
return
!
p_condvar
->
p_events
[
SIGNAL
]
||
!
p_condvar
->
p_events
[
BROADCAST
];
return
!
p_condvar
->
p_events
[
0
]
||
!
p_condvar
->
p_events
[
1
];
}
}
return
(
!
p_condvar
->
signal
);
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
return
pthread_cond_init
(
p_condvar
,
NULL
);
return
pthread_cond_init
(
p_condvar
,
NULL
);
...
@@ -424,7 +422,7 @@ static inline int vlc_cond_signal( vlc_cond_t *p_condvar )
...
@@ -424,7 +422,7 @@ static inline int vlc_cond_signal( vlc_cond_t *p_condvar )
}
}
else
else
{
{
SetEvent
(
p_condvar
->
p_events
[
SIGNAL
]
);
SetEvent
(
p_condvar
->
p_events
[
0
]
);
}
}
}
}
return
0
;
return
0
;
...
@@ -511,7 +509,7 @@ static inline int vlc_cond_broadcast( vlc_cond_t *p_condvar )
...
@@ -511,7 +509,7 @@ static inline int vlc_cond_broadcast( vlc_cond_t *p_condvar )
}
}
else
else
{
{
SetEvent
(
p_condvar
->
p_events
[
BROADCAST
]
);
SetEvent
(
p_condvar
->
p_events
[
1
]
);
}
}
}
}
return
0
;
return
0
;
...
@@ -637,10 +635,10 @@ static inline int _vlc_cond_wait( char * psz_file, int i_line,
...
@@ -637,10 +635,10 @@ static inline int _vlc_cond_wait( char * psz_file, int i_line,
/* If we are the last waiter and it was a broadcast signal, reset
/* If we are the last waiter and it was a broadcast signal, reset
* the broadcast event. */
* the broadcast event. */
if
(
i_ret
==
WAIT_OBJECT_0
+
BROADCAST
if
(
i_ret
==
WAIT_OBJECT_0
+
1
&&
p_condvar
->
i_waiting_threads
==
0
)
&&
p_condvar
->
i_waiting_threads
==
0
)
{
{
ResetEvent
(
p_condvar
->
p_events
[
BROADCAST
]
);
ResetEvent
(
p_condvar
->
p_events
[
1
]
);
}
}
return
(
i_ret
==
WAIT_FAILED
);
return
(
i_ret
==
WAIT_FAILED
);
...
@@ -742,8 +740,8 @@ static inline int _vlc_cond_destroy( char * psz_file, int i_line,
...
@@ -742,8 +740,8 @@ static inline int _vlc_cond_destroy( char * psz_file, int i_line,
}
}
else
else
{
{
return
!
CloseHandle
(
p_condvar
->
p_events
[
SIGNAL
]
)
return
!
CloseHandle
(
p_condvar
->
p_events
[
0
]
)
||
!
CloseHandle
(
p_condvar
->
p_events
[
BROADCAST
]
);
||
!
CloseHandle
(
p_condvar
->
p_events
[
1
]
);
}
}
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
#elif defined( PTHREAD_COND_T_IN_PTHREAD_H )
...
...
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