flush_events

Gamma: Version 4.0
Prev |  | Next

# `flush_events`

`flush_events` -- handles all pending events, then exits.

## Syntax

    flush_events ()

## Arguments

`none`

## Returns

The result of executing all pending events, then exits.

## Description

This function ensures that an appropriate event-handling function is called to handle all pending events from: a window system (where applicable), other tasks (interprocess communication messages), timers, or signals. Upon completion, `flush_events` causes the program to exit.

## Example

        Gamma> flush_events();

        (the result of any pending events)

        [/user/cogent/bin]$

## See Also

`next_event`

Prev | Home | Next
`add_set_function` | Up | `next_event`, `next_event_nb`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.