Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- OSLIB v1.05 - <b>ol_autoyield()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 OL_AutoYield()
 Automaticly return times slices back to the OS.
------------------------------------------------------------------------------

 Syntax

       OL_AutoYield( [<lOn>] ) --> lOld

 Arguments

      <lOn> is an optional logical variable that tells the function if
      it should turn the yielding on or off. If not supplied the function
      just returns the current setting.

 Returns

      The current/old setting.

 Description

      OL_AutoYield() can be used to yield time slices back to the
      operating system in those situations where you don't have access
      to or control over the code that is causing the slice hogging.
      For example, if you were to use Clipper's "Menu To" command you
      would not be able to make use of the OL_Yield() function so
      turning on OL_AutoYield() will allow the yielding of times slices.

 Examples

      // Turn on auto yielding.

      OL_AutoYield( TRUE )

 Source: AUTYIELD.C

 Author: Dave Pearson, heavily stolen from Ted Means

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