Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
4c7f87a7
Commit
4c7f87a7
authored
Sep 17, 2006
by
zorglub
Browse files
Reduce wakeup frequencies
parent
b4f2f488
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/misc/screensaver.c
View file @
4c7f87a7
...
...
@@ -142,7 +142,7 @@ static void Run( intf_thread_t *p_intf )
while
(
!
p_intf
->
b_die
)
{
msleep
(
100000
);
msleep
(
INTF_IDLE_SLEEP
*
5
);
// 250ms
/* Check screensaver every 30 seconds */
if
(
++
i_lastcall
>
300
)
...
...
src/playlist/thread.c
View file @
4c7f87a7
...
...
@@ -141,20 +141,10 @@ static void RunControlThread ( playlist_t *p_playlist )
HandleInteraction
(
p_playlist
);
HandleStats
(
p_playlist
,
i_loops
);
HandlePlaylist
(
p_playlist
);
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
);
/* 100 ms is an acceptable delay for playlist operations */
msleep
(
INTF_IDLE_SLEEP
*
2
);
}
EndPlaylist
(
p_playlist
);
...
...
@@ -233,7 +223,7 @@ static void HandleInteraction( playlist_t *p_playlist )
*****************************************************************************/
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
);
if
(
p_playlist
->
p_input
)
...
...
Write
Preview
Supports
Markdown
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