Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
4c7f87a7
Commit
4c7f87a7
authored
Sep 17, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce wakeup frequencies
parent
b4f2f488
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
modules/misc/screensaver.c
modules/misc/screensaver.c
+1
-1
src/playlist/thread.c
src/playlist/thread.c
+3
-13
No files found.
modules/misc/screensaver.c
View file @
4c7f87a7
...
@@ -142,7 +142,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -142,7 +142,7 @@ static void Run( intf_thread_t *p_intf )
while
(
!
p_intf
->
b_die
)
while
(
!
p_intf
->
b_die
)
{
{
msleep
(
100000
);
msleep
(
INTF_IDLE_SLEEP
*
5
);
// 250ms
/* Check screensaver every 30 seconds */
/* Check screensaver every 30 seconds */
if
(
++
i_lastcall
>
300
)
if
(
++
i_lastcall
>
300
)
...
...
src/playlist/thread.c
View file @
4c7f87a7
...
@@ -141,20 +141,10 @@ static void RunControlThread ( playlist_t *p_playlist )
...
@@ -141,20 +141,10 @@ static void RunControlThread ( playlist_t *p_playlist )
HandleInteraction
(
p_playlist
);
HandleInteraction
(
p_playlist
);
HandleStats
(
p_playlist
,
i_loops
);
HandleStats
(
p_playlist
,
i_loops
);
HandlePlaylist
(
p_playlist
);
HandlePlaylist
(
p_playlist
);
msleep
(
INTF_IDLE_SLEEP
/
2
);
/* 100 ms is an acceptable delay for playlist operations */
msleep
(
INTF_IDLE_SLEEP
*
2
);
/* Stop sleeping earlier if we have work */
/* TODO : statistics about this */
if
(
p_playlist
->
request
.
b_request
&&
p_playlist
->
status
.
i_status
==
PLAYLIST_RUNNING
)
{
continue
;
}
msleep
(
INTF_IDLE_SLEEP
/
2
);
}
}
EndPlaylist
(
p_playlist
);
EndPlaylist
(
p_playlist
);
...
@@ -233,7 +223,7 @@ static void HandleInteraction( playlist_t *p_playlist )
...
@@ -233,7 +223,7 @@ static void HandleInteraction( playlist_t *p_playlist )
*****************************************************************************/
*****************************************************************************/
static
void
HandleStats
(
playlist_t
*
p_playlist
,
int
i_loops
)
static
void
HandleStats
(
playlist_t
*
p_playlist
,
int
i_loops
)
{
{
if
(
i_loops
%
5
==
0
&&
p_playlist
->
p_stats
)
if
(
i_loops
%
5
==
0
&&
p_playlist
->
p_stats
)
{
{
stats_ComputeGlobalStats
(
p_playlist
,
p_playlist
->
p_stats
);
stats_ComputeGlobalStats
(
p_playlist
,
p_playlist
->
p_stats
);
if
(
p_playlist
->
p_input
)
if
(
p_playlist
->
p_input
)
...
...
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