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
1d91a5ee
Commit
1d91a5ee
authored
Jul 23, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove timer serialization (we don't do it on POSIX anyway)
parent
b670356d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
src/misc/w32thread.c
src/misc/w32thread.c
+3
-12
No files found.
src/misc/w32thread.c
View file @
1d91a5ee
...
...
@@ -592,23 +592,14 @@ static void CALLBACK vlc_timer_do (void *val, BOOLEAN timeout)
vlc_timer_t
*
id
=
val
;
assert
(
timeout
);
if
(
TryEnterCriticalSection
(
&
id
->
serializer
))
{
id
->
overrun
=
InterlockedExchange
(
&
id
->
counter
,
0
);
id
->
func
(
id
->
data
);
LeaveCriticalSection
(
&
id
->
serializer
);
}
else
/* Overrun */
InterlockedIncrement
(
&
id
->
counter
);
id
->
func
(
id
->
data
);
}
int
vlc_timer_create
(
vlc_timer_t
*
id
,
void
(
*
func
)
(
void
*
),
void
*
data
)
{
id
->
func
=
func
;
id
->
data
=
data
;
id
->
overrun
=
0
;
id
->
handle
=
INVALID_HANDLE_VALUE
;
InitializeCriticalSection
(
&
id
->
serializer
);
return
0
;
}
...
...
@@ -616,7 +607,6 @@ void vlc_timer_destroy (vlc_timer_t *id)
{
if
(
id
->
handle
!=
INVALID_HANDLE_VALUE
)
DeleteTimerQueueTimer
(
NULL
,
id
->
handle
,
NULL
);
DeleteCriticalSection
(
&
id
->
serializer
);
}
void
vlc_timer_schedule
(
vlc_timer_t
*
id
,
bool
absolute
,
...
...
@@ -641,5 +631,6 @@ void vlc_timer_schedule (vlc_timer_t *id, bool absolute,
unsigned
vlc_timer_getoverrun
(
const
vlc_timer_t
*
id
)
{
return
id
->
overrun
;
(
void
)
id
;
return
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