2011-06-03 01:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* src/vm/thread.c
    * upped sleep timeout in *nix version of hb_threadReleaseCPU() to 20 ms
      it halves CPU consumption. pls revert/comment if you notice
      causing this any harm.
This commit is contained in:
Viktor Szakats
2011-06-02 23:55:58 +00:00
parent 6559dd0467
commit 208a946eeb
2 changed files with 10 additions and 4 deletions

View File

@@ -16,6 +16,12 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-06-03 01:55 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/vm/thread.c
* upped sleep timeout in *nix version of hb_threadReleaseCPU() to 20 ms
it halves CPU consumption. pls revert/comment if you notice
causing this any harm.
2011-06-02 15:32 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbide/changelog.ui
! Changed: QDialog() => QWidget().
@@ -24,7 +30,7 @@
+ Added: more constants to control docking widgets appearance.
* contrib/hbide/idechangelog.prg
+ Advanced: few more additions. Last worked ChangeLog file is
+ Advanced: few more additions. Last worked ChangeLog file is
saved for next run and is shown opened when activated.
TODO: compose a new syntax-highlighter.
@@ -43,9 +49,9 @@
+ Implemented: user-controlled dock-widgets tab-position and shape.
! Activated: last state of dock-widgets if visible or not for next run.
This facilitates that now user can arrange dock widgets
once-for-all and bring all in focus or push back if not
once-for-all and bring all in focus or push back if not
required.
2011-06-02 21:05 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/vm/thread.c
* set sleep timeout in *nix version of hb_threadReleaseCPU() to 10 ms

View File

@@ -299,7 +299,7 @@ void hb_threadReleaseCPU( void )
{
struct timeval tv;
tv.tv_sec = 0;
tv.tv_usec = 10000;
tv.tv_usec = 20000;
select( 0, NULL, NULL, NULL, &tv );
}