Changeset b14855 in git for Singular/iparith.cc


Ignore:
Timestamp:
Mar 11, 2011, 1:38:28 PM (12 years ago)
Author:
Andreas Steenpaß <steenpas@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
6f83ae275d45dbae3bcb20755554e9f50fe75f22
Parents:
240d6e0f71a7c78b7ad7e858be185c519c48c85f
Message:
fixed: timeout for waitall and waitfirst

git-svn-id: file:///usr/local/Singular/svn/trunk@13955 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    r240d6e rb14855  
    32373237    WerrorS("negative timeout"); return TRUE;
    32383238  }
    3239   int t = 1000*getRTimer()/TIMER_RESOLUTION;
     3239  int t = getRTimer()/TIMER_RESOLUTION;  // in seconds
    32403240  int i;
    32413241  int ret = -1;
     
    32493249      Lforks->m[i-1].rtyp=DEF_CMD;
    32503250      Lforks->m[i-1].data=NULL;
    3251       timeout = si_max(0,timeout - 1000*getRTimer()/TIMER_RESOLUTION + t);
     3251      timeout = si_max(0,timeout - 1000*(getRTimer()/TIMER_RESOLUTION - t));
    32523252    }
    32533253    else /* terminate the for loop */
Note: See TracChangeset for help on using the changeset viewer.