GLib.main_iteration
Description: Reference for GLib.main_iteration

### Function Macro

# GLibmain_iteration

deprecated: 2.2 since: 2.0

#### Declaration

    #define g_main_iteration (
      may_block
    )

#### Description

Runs a single iteration for the default `GMainContext`.

Available since: 2.0

Deprecated since: 2.2

Use `g_main_context_iteration()` instead.

This function is not directly available to language bindings.

#### Parameters

`may_block`

  Type: `-`

  Set to `TRUE` if it should block (i.e. wait) until an event source becomes ready. It will return after an event source has been processed. If set to `FALSE` it will return immediately if no event source is ready to be processed.