Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>attempt to flock() with optional retries</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Attempt to FLOCK() with optional retries
------------------------------------------------------------------------------

 Syntax

        GT_FilLock( nSeconds )

 Arguments:

      nSeconds - Number of retries - 0 to retry indefinately

 Returns:

      .T. if the file was locked
      .F. if the file was not locked

 Description:

      Attempts to FLOCK the current area.  If it fails, waits for a second
      and tries again.  After nSeconds retries it fails.

 Examples:



 Source: FILELOCK.PRG

 Author:  Martin Colloby

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson