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


INTEGER atomic(INTEGER goatomic)

This function is used to turn on and off atomic execution. When executing atomically no other tasks will be run. This also means that any function that normally preempts will throw an error (with the exception of refresh()). If the argument is false (zero) the interpreter stops executing atomically. If the argument is true (non-zero) the interpreter starts executing atomically. Note: read the section Frames and Tasks before using atomic().


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