Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
848489c3
Commit
848489c3
authored
Jul 31, 2008
by
Pierre d'Herbemont
Browse files
threads: Make sure we don't re-create a thread if the object has already one.
parent
10a6bde5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/threads.c
View file @
848489c3
...
...
@@ -501,6 +501,9 @@ int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line
vlc_object_lock
(
p_this
);
/* Make sure we don't re-create a thread if the object has already one */
assert
(
!
p_priv
->
b_thread
);
#if defined( LIBVLC_USE_PTHREAD )
pthread_attr_t
attr
;
pthread_attr_init
(
&
attr
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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