Changeset 3bb2203 in tol for tol/bbasic/tol_bsys.h


Ignore:
Timestamp:
May 25, 2010, 2:49:20 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
d74c90b
Parents:
26bc2dd
Message:

New method BSys::SleepMilliSeconds

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2197 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/bbasic/tol_bsys.h

    r26bc2dd r3bb2203  
    157157  static double SessionTime();
    158158  static const BDate& SessionInitTime();
    159 
     159  //Make inactive waiting until they have passed a given number of milliseconds
     160  static void SleepMilliSeconds(unsigned int milliseconds);
     161  //Opens a file and locks it
     162  //If cannot do it then sleeps and retries again until time is out
     163  static FILE* FOpenAndLock(
     164   const char *filename,
     165   const char *mode,
     166   unsigned int timeOutInMilliseconds=0,
     167   char* errorMessage=NULL);
     168  //Unlocks a file and close it
     169  static void FUnlockAndClose(FILE* file);
    160170};
    161171
Note: See TracChangeset for help on using the changeset viewer.