Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
1476c5ee
Commit
1476c5ee
authored
Nov 07, 2011
by
Sébastien Escudier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix win32 threadvar linked list
parent
d7f64384
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/win32/thread.c
src/win32/thread.c
+7
-2
No files found.
src/win32/thread.c
View file @
1476c5ee
...
...
@@ -495,6 +495,9 @@ int vlc_threadvar_create (vlc_threadvar_t *p_tls, void (*destr) (void *))
vlc_mutex_lock
(
&
super_mutex
);
var
->
prev
=
vlc_threadvar_last
;
if
(
var
->
prev
)
var
->
prev
->
next
=
var
;
vlc_threadvar_last
=
var
;
vlc_mutex_unlock
(
&
super_mutex
);
return
0
;
...
...
@@ -507,10 +510,12 @@ void vlc_threadvar_delete (vlc_threadvar_t *p_tls)
vlc_mutex_lock
(
&
super_mutex
);
if
(
var
->
prev
!=
NULL
)
var
->
prev
->
next
=
var
->
next
;
else
vlc_threadvar_last
=
var
->
next
;
if
(
var
->
next
!=
NULL
)
var
->
next
->
prev
=
var
->
prev
;
else
vlc_threadvar_last
=
var
->
prev
;
vlc_mutex_unlock
(
&
super_mutex
);
TlsFree
(
var
->
id
);
...
...
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