Revision: 7256 http://playerstage.svn.sourceforge.net/playerstage/?rev=7256&view=rev Author: thjc Date: 2009-01-08 18:19:00 +0000 (Thu, 08 Jan 2009)
Log Message: ----------- Applied patch 2161837: PlayerV sleep to avoid 100% CPU Modified Paths: -------------- code/player/branches/release-2-1-patches/utils/playerv/playerv.c Modified: code/player/branches/release-2-1-patches/utils/playerv/playerv.c =================================================================== --- code/player/branches/release-2-1-patches/utils/playerv/playerv.c 2009-01-08 18:11:57 UTC (rev 7255) +++ code/player/branches/release-2-1-patches/utils/playerv/playerv.c 2009-01-08 18:19:00 UTC (rev 7256) @@ -126,6 +126,8 @@ #include <time.h> #include "playerv.h" +#define GUI_UPDATE_RATE 20.0 + /* 20 Hz update rate is good for user interaction */ // Set flag to 1 to force program to quit static int quit = 0; @@ -166,7 +168,7 @@ device_t devices[PLAYER_MAX_DEVICES]; device_t *device; struct timeval tv, tc = {0, 0}; - struct timespec st = {0,0}; + struct timespec st = {0, (1.0/GUI_UPDATE_RATE) * 1e9}; printf("PlayerViewer %s\n", VERSION); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit