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
9b2ae59f
Commit
9b2ae59f
authored
Sep 10, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix/doxify documentation
parent
cdf16f92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
src/posix/thread.c
src/posix/thread.c
+13
-11
No files found.
src/posix/thread.c
View file @
9b2ae59f
...
...
@@ -154,11 +154,9 @@ static inline unsigned long vlc_threadid (void)
}
#ifndef NDEBUG
/*****************************************************************************
* vlc_thread_fatal: Report an error from the threading layer
*****************************************************************************
* This is mostly meant for debugging.
*****************************************************************************/
/**
* Reports a fatal error from the threading layer, for debugging purposes.
*/
static
void
vlc_thread_fatal
(
const
char
*
action
,
int
error
,
const
char
*
function
,
const
char
*
file
,
unsigned
line
)
...
...
@@ -210,9 +208,9 @@ vlc_thread_fatal (const char *action, int error,
int
pthread_mutexattr_setkind_np
(
pthread_mutexattr_t
*
attr
,
int
kind
);
#endif
/**
***************************************************************************
*
vlc_mutex_init: initialize a mutex
*
****************************************************************************
/
/**
*
Initializes a fast mutex.
*/
void
vlc_mutex_init
(
vlc_mutex_t
*
p_mutex
)
{
pthread_mutexattr_t
attr
;
...
...
@@ -234,9 +232,10 @@ void vlc_mutex_init( vlc_mutex_t *p_mutex )
pthread_mutexattr_destroy
(
&
attr
);
}
/*****************************************************************************
* vlc_mutex_init: initialize a recursive mutex (Do not use)
*****************************************************************************/
/**
* Initializes a recursive mutex.
* \warning This is strongly discouraged. Please use normal mutexes.
*/
void
vlc_mutex_init_recursive
(
vlc_mutex_t
*
p_mutex
)
{
pthread_mutexattr_t
attr
;
...
...
@@ -273,6 +272,9 @@ void vlc_mutex_destroy (vlc_mutex_t *p_mutex)
# define RUNNING_ON_VALGRIND (0)
# endif
/**
* Asserts that a mutex is locked by the calling thread.
*/
void
vlc_assert_locked
(
vlc_mutex_t
*
p_mutex
)
{
if
(
RUNNING_ON_VALGRIND
>
0
)
...
...
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