Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d2bccf53
Commit
d2bccf53
authored
May 26, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove another invalid use of config.h
parent
b3892a3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
include/vlc_threads.h
include/vlc_threads.h
+9
-9
No files found.
include/vlc_threads.h
View file @
d2bccf53
...
...
@@ -38,7 +38,7 @@
# include <process.h>
/* Win32 API */
# include <errno.h>
#elif defined(
HAVE_KERNEL_SCHEDULER_H )
/* BeOS */
#elif defined(
SYS_BEOS )
/* BeOS */
# include <kernel/OS.h>
# include <kernel/scheduler.h>
# include <byteorder.h>
...
...
@@ -133,7 +133,7 @@ typedef struct
typedef
DWORD
vlc_threadvar_t
;
#elif defined(
HAVE_KERNEL_SCHEDULER_H
)
#elif defined(
SYS_BEOS
)
/* This is the BeOS implementation of the vlc threads, note that the mutex is
* not a real mutex and the cond_var is not like a pthread cond_var but it is
* enough for what we need */
...
...
@@ -212,7 +212,7 @@ static inline void __vlc_mutex_lock( const char * psz_file, int i_line,
WaitForSingleObject
(
*
p_mutex
,
INFINITE
);
#elif defined(
HAVE_KERNEL_SCHEDULER_H
)
#elif defined(
SYS_BEOS
)
acquire_sem
(
p_mutex
->
lock
);
#endif
...
...
@@ -245,7 +245,7 @@ static inline void __vlc_mutex_unlock( const char * psz_file, int i_line,
ReleaseMutex
(
*
p_mutex
);
#elif defined(
HAVE_KERNEL_SCHEDULER_H
)
#elif defined(
SYS_BEOS
)
release_sem
(
p_mutex
->
lock
);
#endif
...
...
@@ -287,7 +287,7 @@ static inline void __vlc_cond_signal( const char * psz_file, int i_line,
* as documented in http://support.microsoft.com/kb/q173260/ */
PulseEvent
(
p_condvar
->
event
);
#elif defined(
HAVE_KERNEL_SCHEDULER_H
)
#elif defined(
SYS_BEOS
)
while
(
p_condvar
->
thread
!=
-
1
)
{
thread_info
info
;
...
...
@@ -345,7 +345,7 @@ static inline void __vlc_cond_wait( const char * psz_file, int i_line,
/* Reacquire the mutex before returning. */
vlc_mutex_lock
(
p_mutex
);
#elif defined(
HAVE_KERNEL_SCHEDULER_H
)
#elif defined(
SYS_BEOS
)
/* The p_condvar->thread var is initialized before the unlock because
* it enables to identify when the thread is interrupted beetwen the
* unlock line and the suspend_thread line */
...
...
@@ -420,7 +420,7 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
(
void
)
psz_file
;
(
void
)
i_line
;
#elif defined(
HAVE_KERNEL_SCHEDULER_H
)
#elif defined(
SYS_BEOS
)
# error Unimplemented
#endif
...
...
@@ -444,7 +444,7 @@ static inline int vlc_threadvar_set( vlc_threadvar_t * p_tls, void *p_value )
#if defined(LIBVLC_USE_PTHREAD)
i_ret
=
pthread_setspecific
(
*
p_tls
,
p_value
);
#elif defined(
HAVE_KERNEL_SCHEDULER_H
)
#elif defined(
SYS_BEOS
)
i_ret
=
EINVAL
;
#elif defined( UNDER_CE ) || defined( WIN32 )
...
...
@@ -465,7 +465,7 @@ static inline void* vlc_threadvar_get( vlc_threadvar_t * p_tls )
#if defined(LIBVLC_USE_PTHREAD)
p_ret
=
pthread_getspecific
(
*
p_tls
);
#elif defined(
HAVE_KERNEL_SCHEDULER_H
)
#elif defined(
SYS_BEOS
)
p_ret
=
NULL
;
#elif defined( UNDER_CE ) || defined( WIN32 )
...
...
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