diff options
author | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-11-16 15:11:52 +0000 |
---|---|---|
committer | faust3 <faust3@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-11-16 15:11:52 +0000 |
commit | 01c75bcd7011efb70c05716f43903c9820edd569 (patch) | |
tree | c8db1670d845bef9f665975c5a837af8e90aa744 /osdep | |
parent | 0d327f00f213c1f1177cbb790a031004386840f1 (diff) | |
download | mpv-01c75bcd7011efb70c05716f43903c9820edd569.tar.bz2 mpv-01c75bcd7011efb70c05716f43903c9820edd569.tar.xz |
Sleep(0) != usleep(0), bugreport by Paul-Kenji Cahier
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11481 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/timer-win2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep/timer-win2.c b/osdep/timer-win2.c index eb8bb3d3f4..7f31126790 100644 --- a/osdep/timer-win2.c +++ b/osdep/timer-win2.c @@ -15,6 +15,10 @@ unsigned int GetTimerMS(){ } int usec_sleep(int usec_delay){ + // Sleep(0) won't sleep for one clocktick as the unix usleep + // instead it will only make the thread ready + // it may take some time until it actually starts to run again + if(usec_delay<1000)usec_delay=1000; Sleep( usec_delay/1000); return 0; } |