Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
55963bd7
Commit
55963bd7
authored
Mar 03, 2013
by
KO Myung-Hun
Committed by
Rémi Denis-Courmont
Mar 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlccore: fix a linked list of threadvar on OS/2
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
1dceede1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/os2/thread.c
src/os2/thread.c
+7
-2
No files found.
src/os2/thread.c
View file @
55963bd7
...
...
@@ -390,6 +390,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
;
...
...
@@ -402,10 +405,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
);
DosFreeThreadLocalMemory
(
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