Cold Help System: Programming: ColdC Reference Manual: Functions: Task: refresh()


INTEGER refresh()

When the server is running non-atomically this function checks the current frame's tick count and preempts the task if it is nearly depleted (similar to pause()), resuming it with a new tick count after all other current tasks have completed, otherwise it does nothing. If the server is running atomically the task will not preempt, but the tick count will automatically be refreshed. See Frames and Tasks for more information on task preempting.


atomic() | caller() | cancel() | definer() | method() | pause() | refresh() | resume() | sender() | stack() | suspend() | task_id() | tasks() | this() | tick() | ticks_left() | set_user() | user() | pass() | task_info() | call_trace() | debug_callers()


the Cold Dark