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
5662f3a4
Commit
5662f3a4
authored
Jul 06, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small simplification
parent
f7324726
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
src/misc/w32thread.c
src/misc/w32thread.c
+1
-4
No files found.
src/misc/w32thread.c
View file @
5662f3a4
...
@@ -339,6 +339,7 @@ void vlc_rwlock_wrlock (vlc_rwlock_t *lock)
...
@@ -339,6 +339,7 @@ void vlc_rwlock_wrlock (vlc_rwlock_t *lock)
lock
->
writers
++
;
lock
->
writers
++
;
while
((
lock
->
readers
>
0
)
||
(
lock
->
writer
!=
0
))
while
((
lock
->
readers
>
0
)
||
(
lock
->
writer
!=
0
))
vlc_cond_wait
(
&
lock
->
write_wait
,
&
lock
->
mutex
);
vlc_cond_wait
(
&
lock
->
write_wait
,
&
lock
->
mutex
);
lock
->
writers
--
;
lock
->
writer
=
GetCurrentThreadId
();
lock
->
writer
=
GetCurrentThreadId
();
vlc_mutex_unlock
(
&
lock
->
mutex
);
vlc_mutex_unlock
(
&
lock
->
mutex
);
}
}
...
@@ -352,11 +353,7 @@ void vlc_rwlock_unlock (vlc_rwlock_t *lock)
...
@@ -352,11 +353,7 @@ void vlc_rwlock_unlock (vlc_rwlock_t *lock)
if
(
lock
->
readers
>
0
)
if
(
lock
->
readers
>
0
)
lock
->
readers
--
;
/* Read unlock */
lock
->
readers
--
;
/* Read unlock */
else
else
{
lock
->
writer
=
0
;
/* Write unlock */
lock
->
writer
=
0
;
/* Write unlock */
assert
(
lock
->
writers
>
0
);
lock
->
writers
--
;
}
if
(
lock
->
writers
>
0
)
if
(
lock
->
writers
>
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